lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ariel <isaacr...@gmail.com>
Subject Re: How to search documents taking in account the dates ???
Date Wed, 19 Nov 2008 18:23:58 GMT
it is supposed lucene make a lexicocraphic sorting but this is not hapening,
Could you tell me what I'm doing wrong ?
I hope you can help me.
Regards

On Wed, Nov 19, 2008 at 11:56 AM, Ariel <isaacrc82@gmail.com> wrote:

> Thanks, that was very helpful, but I have a question when I make the
> searches it does not sort the results according to the range, for example:
> year: [2003 TO 2008] in the first page 2003 documents are showed, in the
> second 2005 documents, in the third page 2004 documents, I don't see any
> sort criteria.
> How could I fix that problem ???
> Greetings
> Ariel
>
>
> On Wed, Nov 19, 2008 at 11:09 AM, Ian Lea <ian.lea@gmail.com> wrote:
>
>> Hi - sounds like you need a range query.
>>
>>
>> http://lucene.apache.org/java/2_3_2/queryparsersyntax.html#Range%20Searches
>>
>>
>> --
>> Ian.
>>
>>
>> On Wed, Nov 19, 2008 at 4:02 PM, Ariel <isaacrc82@gmail.com> wrote:
>> > Hi everybody:
>> >
>> > I need to make search with lucene 2.3.2, taking in account the dates,
>> > previously when I build the index I create a date field where I stored
>> the
>> > year in which the document was created, at the search moment I would
>> like to
>> > retrieve documents that have been created before a Year or after a Year,
>> for
>> > example documents before 2002 year o after 2003 year.
>> > It is possible to do that with lucene ???
>> > Regards
>> > Ariel
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message