lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohamed Parvez <par...@gmail.com>
Subject Filter query to check for not null filed
Date Fri, 04 Sep 2009 22:40:03 GMT
Say i have 3 fields, named field1,field2 and field3

I want to query all records that have "xxx" in field1 and filed3 should not
be null

I tried
1] q=field1:xxx&fq=?
Got an error saying => org.apache.lucene.queryParser.ParseException: Cannot
parse 'title:?': '*' or '?' not allowed as first character in WildcardQuery

2] q=filed1:xxx&fq=-x
Got an error saying => org.apache.lucene.queryParser.ParseException: Cannot
parse 'title:-smb': Encountered " "-" "- "" at line 1, column 6. Was
expecting one of: "(" ... "*" ... ... ... ... ... "[" ... "{" ... ...


Any suggestions?

----
Thanks/Regards,
Parvez

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