Mike Klaas wrote: > > This is almost certainly due to a mismatch between the index- and > query-time analysis of the fields. For instance, your schema defines > the title field to be "string" (unanalyzed), but it is likely that > some tokenization (perhaps via StandardAnalyzer) occurred in the > original index. >
Yep, that was exactly the problem. I changed all of my field types from "string" to "text", and things still didn't work right when querying. So I asked the guy who created the Lucene index what analyzers he used, and he had used the StandardAnalyzer, whereas my Solr configuration was using the default advanced analyzer setup that Solr comes with in schema.xml. So I changed my schema.xml to use just StandardAnalyzer, and the searches now seem to be returning expected results. -Dan -- View this message in context: http://www.nabble.com/Solr-finding-doc-by-one-field-but-not-by-another-tf3481287.html#a9761451 Sent from the Solr - User mailing list archive at Nabble.com.