lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: How to construct this query ?
Date Wed, 07 Mar 2012 14:06:51 GMT
Looks fine to me.  Care to supply any evidence?

http://wiki.apache.org/lucene-java/LuceneFAQ#Why_am_I_getting_no_hits_.2BAC8_incorrect_hits.3F
has good tips.


--
Ian.


On Wed, Mar 7, 2012 at 1:53 PM, heikki <tropicano@gmail.com> wrote:
> hello,
>
> 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.
>
> Any help greatly appreciated,
>
> kind regards,
> Heikki Doeleman
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/How-to-construct-this-query-tp3806767p3806767.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>

---------------------------------------------------------------------
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