Hi all,
I wrote a lucene query that searches for contents with attribute name containing "One" and not containing "Two" as:
query = "+@cm\\:name:\"One\" -@cm\\:name:\"Two\"";
This works well. Now if I want to just search for contents not containing "Two", I assumed the query would like
query = "-@cm\\:name:\"Two\""; But it does not work. I modified the
query as: query = "+@cm\\:name:\"*\"* -@cm\\:name:\"Two\""; and it seems working.
I am not sure why the previous query is not working. Please shed some light on this.
Thanks,
Venkat