On Mon, Feb 16, 2015 at 4:32 PM, Arun Rangarajan <arunrangara...@gmail.com> wrote: [...] > This query > q=name:of&rows=0 > gives no results as expected. > > However, this query: > q=name:of AND all_class_ids:(371)&rows=0 > gives results and is equal to the same number of results as > q=all_class_ids:(371)&rows=0 > > This is happening only for stopwords. Why?
This is more of a full-text search thing. Removal of stopwords is more like a "don't care, it's not important". Hence a query for "a plane" should return all documents containing "plane", ignoring the question of if the document contained an "a" (which we can't tell since stopwords were removed during indexing). Now I understand your point about consistency too. Using the example above, something like q=name:of should arguably match all documents (or at least all documents with a "name" field). It is very odd to add an additional restriction and end up with more docs. -Yonik