On Sat, 17 May 2008, Aditi Goyal wrote:
I have an index where one of the key is "attachment_type". It stores value
like "no" in case of no attachments and "pdf", "jpg", "msdoc" incase of
attachments.
So, I want to form a query in which I can do a search for the ones with only
attachments.
How can I do that search?
I have tried with NOT attachment_type:"no"
See:
http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc//org/apache/lucene/search/BooleanClause.Occur.html#MUST_NOT
Note that you cannot write a query that is just made of a MUST_NOT clause.
You also may want to contact [EMAIL PROTECTED] for such general
Lucene user questions. There is more traffic there and the answers you'd get
are directly application to PyLucene which is only a wrapper around Java
Lucene.
Andi..
_______________________________________________
pylucene-dev mailing list
pylucene-dev@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev