I have two solr instances. One is a master and the other a slave, polling the
master every 20 seconds or so for index updates. My application mainly
queries the slave, so most of the load falls to it.

There are some areas of the application that do query the master, however.
For instance, During the execution of an action (I am using the symfony 2
framework + solarium bundle + solarium lib) I query the master. I query not
just once, but between 20-50 times during the lifetime of the execution of
the action. You can assume that this amount of querying is tolerable. What
occurs during the querying has left me perplexed.

If I execute the action (make a page request through the browser), say
twice, the set of results returned are different for each of the requests.
To simplify, if the action only queried the master three times, then:

page request one: (first query: 1 hits, second query: 0 hits, third query: 1
hits)

page request two: (first query: 0 hits, second query: 1 hits, third query, 0
hits)

There are no differences in the queries in the first page request and second
(although the three queries themselves are different from each other). They
are the exact same queries. I tail the request logs in the solr master
instance, and it does log all of the requests, so all of the requests made
by the application code are being received correctly by the master (this
rules out any connection issues, application level issues), but it seems to
get hits sometimes, while other times, not. When I perform the same query
(that returned 0 hits during the execution of the action) in the front end
solr interface, I do get the hit I am expecting.

There is another server apart from the master, slave, and application, that
runs a process that continuously updates the index based on changes detected
in the source data - a relational database.

Could anyone provide some insight on this inconsistent behavior? Why would
solr produce two different results for the same query? 




--
View this message in context: 
http://lucene.472066.n3.nabble.com/SOLR-inconsistent-results-tp4035888.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to