lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Salem" <>
Subject ComplexPhraseQueryParser with multiple fields
Date Fri, 29 Apr 2011 13:54:42 GMT
I've just started using the ComplexPhraseQueryParser and it works great with one field but
is there a way for it to work with multiple fields?  For example, right now the query:
job_title: "sales man*" AND NOT contact_name: "Chris Salem"
throws this exception 
Caused by: org.apache.lucene.queryParser.ParseException: Cannot have clause for field "job_title"
nested in phrase for field "contact_name"
What is the best way to work around this?
Chris Salem

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message