lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "G.Long" <jde...@gmail.com>
Subject how to create a range query with string parameters
Date Tue, 17 May 2011 11:52:38 GMT
Hi there :)

I would like to perform a range query on a lucene index. I'm using 
lucene 3.1 api.
I looked at the javadoc and found a rangeQueryNode but i'm not sure how 
to use it.

I've got a field "article" in my index which is indexed this way :

entry.add(new Field("article", article, Field.Store.YES, 
Field.Index.ANALYZED));

Now I would like to create a query such as :

+article:[L. 140-1 TO L.145-2]

I didn't manage to find code sample on the web. Could someone give me a 
hand please?

Regards :)


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