Hello, What is wrong with my following query? I have a Solr query: { "query": X, "sort":"prodAllGeneric_txt_sort asc" }
(Note: prodAllGeneric_txt_sort is a field, X is the details of a query) If X is "(prodAllGeneric_txt_sort:\"Phi; \")", Solr finds 3 documents If X is "(-prodAllGeneric_txt_sort:*)", Solr finds 8 documents If X is "(prodAllGeneric_txt_sort:\"Phi; \") OR (-prodAllGeneric_txt_sort:*)", Solr only find 3 documents. What is wrong? I think Solr should find 11 documents. It seems OR does not work this time. Next I do a little change, If X is "(prodAllGeneric_txt_sort:\"Phi; \")", Solr finds 3 documents If X is "(prodAllGeneric_txt_sort:\"Chi; \")", Solr finds 9 documents If X is "(prodAllGeneric_txt_sort:\"Phi; \") OR (prodAllGeneric_txt_sort:\"Chi; \")", Solr finds 12 documents. It seems OR does work this time. Many thanks, Zhiqing