Solr search with AND and OR
I am using Solrj as solr client We have a user query like "XIO: fatal IO error 11 (Resource temporarily unavailable) on X server :0" AND "after 109" or "XIO: fatal IO error 11 (Resource temporarily unavailable) on X server :0" "after 109" currently if (syndrome.startsWith("\"") && syndrome.endsWith("\"")) { syndrome = syndrome.replaceAll("\"", ""); syndrome = QueryParser.escape(syndrome); syndrome = "\"" + syndrome + "\""; } is the code which escapes the query, but the problem with this is it removes the double quotes before escaping and inserts it after escaping which removes the double quote for AND query and its gets searched for "XIO\:++fatal+IO+error+11+\(Resource+temporarily+unavailable\)+on+X+server+\:0+AND+after+109" This will result in wrong results Is there a war to interpret this request correctly and send it to SOLR. I was looking if there are any query parsers I need to use ? Any suggestions would be useful Thanks Meena -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-search-with-AND-and-OR-tp4222618.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr output in custom json format
Sorry I was missing the actual part that is without parsing the json output. I was looking in to Solrj QueryReponse.getBeans(Syndrome.class) , but how do I embed highlighting snippet inside each of the Syndrome object itself. Thanks meena -- View this message in context: http://lucene.472066.n3.nabble.com/solr-output-in-custom-json-format-tp4187200p4187202.html Sent from the Solr - User mailing list archive at Nabble.com.
solr output in custom json format
I need to create custom json format of solr output for a specific UI. I was wondering if there is a way to embed "highlighting" portion inside docs itself. Thanks Meena -- View this message in context: http://lucene.472066.n3.nabble.com/solr-output-in-custom-json-format-tp4187200.html Sent from the Solr - User mailing list archive at Nabble.com.
How to parse a raw user query
Hi I am using solr 4.9 and this is my first ventuer with solr. How do I parse a raw user query. I am using manual parsing currently and found out it is as competant and had to be complex. Is there a parser which solr provides to parse the raw queries. I am using HttpClient to make http query search to solr HttpClient client = HttpClientBuilder.create().build(); sample query strings "component build" AND "module search" "component build" OR "module search" "component build" Thanks Meena -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-parse-a-raw-user-query-tp4184201.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: Solr 4.9 Calling DIH concurrently
Thanks James. Your idea worked well( using multiple request handlers). I will try and implement some code when I have some spare cycles. By the way by coding you mean using the same request handler and some how querying it simultaneously. Howz it possible? Thanks meena -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-4-9-Calling-DIH-concurrently-tp4183744p4184184.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: Solr 4.9 Calling DIH concurrently
Thanks James. After lots of search and reading now I think I understand a little from your answer. If I understand correctly my solrconfig.xml will have section like this db-data-config1.xml db-data-config1.xml . . . . . db-data-config1.xml Is this correct. If its true then I can call 8 such requests 8 and solr will commit data when the 100 of 100MB is reached per thread. Thanks again for your time. Thanks Meena -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-4-9-Calling-DIH-concurrently-tp4183744p4183750.html Sent from the Solr - User mailing list archive at Nabble.com.
Solr 4.9 Calling DIH concurrently
Hi I am using solr 4.9 and need to index million of documents from database. I am using DIH and sending request to fetch by ids. Is there a way to run multiple indexing threads, concurrently in DIH. I want to take advantage of parameter. How do I do it. I am just invoking DIH handler using solrj HttpSolrServer. And issue requests sequentially. http://localhost:8983/solr/db/dataimport?command=full-import&clean=false&maxId=100&minId=1 http://localhost:8983/solr/db/dataimport?command=full-import&clean=false&maxId=201&minId=101 -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-4-9-Calling-DIH-concurrently-tp4183744.html Sent from the Solr - User mailing list archive at Nabble.com.
Highting whole pharse
Highlighting does not highlight the whole Phrase, instead each word gets highlighted. I tried all the suggestions that was given, with no luck These are my special setting I tried for phrase highlighting hl.usePhraseHighlighter=true hl.q="query" http://localhost.mathworks.com:8983/solr/db/select?q=syndrome%3A%22Override+ignored+for+property%22&rows=1&fl=syndrome_id&wt=json&indent=true&hl=true&hl.simple.pre=%3Cem%3E&hl.simple.post=%3C%2Fem%3E&hl.usePhraseHighlighter=true&hl.q=%22Override+ignored+for+property%22&hl.fragsize=1000 This is from my schema.xml Should I add parameters in the indexing stage itself to make this work? Thanks for your time. Meena -- View this message in context: http://lucene.472066.n3.nabble.com/Highting-whole-pharse-tp4179219.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr search on a large text field is very slow
Thanks for your responses, helped me to understand the issue. Digged through the documentation and now I am implementing EdgeNGramFilterFactory to see how fastly can I improve wild card searches. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-search-on-a-large-text-field-is-very-slow-tp4083310p4083365.html Sent from the Solr - User mailing list archive at Nabble.com.
Solr search on a large text field is very slow
Index size is around 150 GB and there are around 6.5 million documents in the index. Search on a specific text field is very slow, it takes 1 minute to 2 minute for wildcard queries like *test* with no highlighting and no facets This field contributes to 90% of index size. This is my shema.xml I am using DIH for indexing data from Database. Largest "syndrome" field size is 5MB it can range from 5MB to 1KB I tried using whitespacetokeniser with not much luck, I am using solr3.6.0 Indexing takes 1.5 hours. Please let me know , if I need to add anything to improve the search speed. Thanks Meena -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-search-on-a-large-text-field-is-very-slow-tp4083310.html Sent from the Solr - User mailing list archive at Nabble.com.