I have indexed a file with fields -
- Content (type :text_general, uninvertible :false, indexed :true, stored :true)
- Category (type :text_general, uninvertible :false, indexed :true, stored :true)
- Title (type :text_general, uninvertible :false, indexed :true, stored :true)
with a catch-all copyfield-
source: *,
dest :_text_
Now when I search Content field, for query - Apple trade , I get 6057 docs;
But when I search - trade Apple , I get 5878 docs.
However when the same search is performed on the catch-all field , I get same result for both the queries (6057 docs).
I am not understanding the mistake here, as I would wish solr to give same result for both queries when searched on Content field.
I am using-
- LuceneQParser
- ClassicSimilarity
Two queries on 'Content' Field :
- Apple trade
http://localhost:8983/solr/core_name/select?q=Content%3A%20Apple%20trade
- trade Apple
http://localhost:8983/solr/core_name/select?q=Content%3A%20trade%20Apple
trade Apple
is searched in theContent
field, when justtrade
is - andApple
is searched in the default search field. – MatsLindh-
prefix) they're different from what you've added in your question. Also appenddebug=all
to your query and include the relevant part about how the query is parsed. – MatsLindh