Can you retrieve those thread_ids as is? That is, if you query for
thread_id:456 (w/o all the other stuff) what happens?
Also, try adding &debugQuery=true to your input parameters. This
should give you some more information about how the query was parsed,
etc.
HTH,
Grant
On Dec 2, 2008, at 9:29 PM, Jake Conk wrote:
Hello,
I am trying to exclude certain records from my search results in my
query by specifying which ones I don't want back but its not working
as expected. Here is my query:
+message:test AND (-thread_id:123 OR -thread_id:456 OR -thread_id:789)
So basically I just want anything back that has the word "test"
anywhere in the message text field and does not contain the thread id
123, 456, or 789.
When I execute that query I get no results back. When I just execute
+message:test then I get results back and some of them with the thread
ids I listed above but when I try to exclude them like that it doesn't
work.
Anyone have any idea how do I fix this?
Thanks,
- Jake C.
--------------------------
Grant Ingersoll
Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ