Re: Solr Shard Query From Inside Search Component Sometimes Gives Wrong Results
Hi Shalin, I am making simple facet query on shards and the sort order is based on the score. Actually sometimes I am getting the correct result from the shards. I am not indexing the data at the time of query. I think as I am making the shard query inside Solr search component, it is not waiting for the results from all the shards. Some shard gives the following parsing error when result comes incorrect org.apache.solr.common.SolrException: org.apache.solr.search.SyntaxError: org.apache.query.queryparser.ParseException: Cannot parse 'PNC:ca955235a1': Encountered EOF at line 1, column 0. But this is the valid query. I have also the same problem outside of the search component. But when I tried the same approach from the SolrQueryComponent's createMainQuery() method it is working as desired. private void createMainQuery(ResponseBuilder rb) { // shard query works fine from here } -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-Shard-Query-From-Inside-Search-Component-Sometimes-Gives-Wrong-Results-tp4120840p4121089.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr Shard Query From Inside Search Component Sometimes Gives Wrong Results
What was the query you are making? What is the sort order for the query? Are you sure you are not indexing data in between making these requests? Are you able to reproduce this outside of your search component? It is hard to answer questions about custom code without actually looking at the code. On Mon, Mar 3, 2014 at 3:37 PM, Vishnu Mishra vdil...@gmail.com wrote: Hi, I am using Solr 4.6 and doing Solr query on shard from inside Solr search component and try to use the obtained results for my custom logic. I have used a Solrj for doing distributed search, but the result coming from this distributed search vary some time. So the my questions are, 1. Can we do distributed search from Solr Search component. 2. Do we need to handle concurrency between Solr server by using synchronization or other technique. Is there a way to make a distributed search in the Solr Search Component and get the matched documents from all the shards? If anyone have Idea then help me. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-Shard-Query-From-Inside-Search-Component-Sometimes-Gives-Wrong-Results-tp4120840.html Sent from the Solr - User mailing list archive at Nabble.com. -- Regards, Shalin Shekhar Mangar.