You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by samd <sd...@yahoo.com> on 2008/08/04 19:23:11 UTC

Range search between two different fields.

I have a search which needs to find dates which are specified in two
different fields. 

For an example:

I have a Java object with a date field that starts the time something
started and another that specifies the time that something ended.

I need to do a date search that the range is specified between the start and
the end.

Thanks
-- 
View this message in context: http://www.nabble.com/Range-search-between-two-different-fields.-tp18815733p18815733.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


Re: Range search between two different fields.

Posted by samd <sd...@yahoo.com>.
Thanks for the feedback and the quick response. The problem was a result of
unclear requirements fortunately I do not have to specify the range to be
between two different fields.



Erick Erickson wrote:
> 
> Could you explain your problem a bit more? It's completely unclear
> to me what java objects have to do with searching a lucene index.
> 
> If you're extracting data from some java objects somewhere to
> insert in an index, then it's up to you to index them such that you
> can extract the information in a way that does you the most good.
> 
> 
> 
> Best
> Erick
> 
> On Mon, Aug 4, 2008 at 1:23 PM, samd <sd...@yahoo.com> wrote:
> 
>>
>> I have a search which needs to find dates which are specified in two
>> different fields.
>>
>> For an example:
>>
>> I have a Java object with a date field that starts the time something
>> started and another that specifies the time that something ended.
>>
>> I need to do a date search that the range is specified between the start
>> and
>> the end.
>>
>> Thanks
>> --
>> View this message in context:
>> http://www.nabble.com/Range-search-between-two-different-fields.-tp18815733p18815733.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
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Range-search-between-two-different-fields.-tp18815733p18818781.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


Re: Range search between two different fields.

Posted by Erick Erickson <er...@gmail.com>.
Could you explain your problem a bit more? It's completely unclear
to me what java objects have to do with searching a lucene index.

If you're extracting data from some java objects somewhere to
insert in an index, then it's up to you to index them such that you
can extract the information in a way that does you the most good.



Best
Erick

On Mon, Aug 4, 2008 at 1:23 PM, samd <sd...@yahoo.com> wrote:

>
> I have a search which needs to find dates which are specified in two
> different fields.
>
> For an example:
>
> I have a Java object with a date field that starts the time something
> started and another that specifies the time that something ended.
>
> I need to do a date search that the range is specified between the start
> and
> the end.
>
> Thanks
> --
> View this message in context:
> http://www.nabble.com/Range-search-between-two-different-fields.-tp18815733p18815733.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
>
>