lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: How to construct this query ?
Date Wed, 07 Mar 2012 14:04:07 GMT
> I'm trying to programmatically create a query but don't get
> it working.
> 
> The query should return all results that match some prefix,
> but not any
> results that /exactly/ match the prefix (in the same field).
> So only the
> results where the field contents are longer than the
> prefix.
> 
> I tried this:
> 
> -FIELD:prefix +(FIELD:prefix*)
> 
> but it doesn't work.

How about this one?  -FIELD:prefix +FIELD:prefix?*

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message