lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukes <>
Subject Doing Range/NUmber queries
Date Mon, 08 Aug 2016 04:20:32 GMT

   I am new to Lucene and couple of questions. I have worked with SOLR
previously, now trying to work directly with Lucene to get similar
functionality(but without SOLR). Below are my questions, thanks in advance.

1) In SOLR, there is functionality of copyfields, which dynamically copies
one field value to destination field but without actually storing it in
second time. Does Lucene provides anything directly out of the box ? If i
have to implement such feature, then i need to manually copy the value from
1 field and create new field out of it ?

2) If i have to do some Number(Integer, Double, Long) values search(Range or
simple) then how do i do that ? I looked online but examples were mentioning
RangeQuery, but i see from 6.1.0 it's not supported anymore. Can you please
post some example for that ? I found /FunctionRangeQuery/, but while
providing the second argument as long value, it started throwing error that
it expects the value as int.

3) How do i create BooleanField (while creating the document) ? And during
query, how do i create clause/query for that field ?

Really appreciate the help in advance. 

View this message in context:
Sent from the Lucene - General mailing list archive at

View raw message