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 Igor Shalyminov <is...@yandex-team.ru> on 2013/02/23 19:46:28 UTC
SpanQuery.getSpans() with document sorting
Hi all!
I'm using SpanQuery.getSpans() method for retrieving the precise information about all the matches through all the documents in the index.
My question, is it possible to to get the spans in the sorted order by their document's field (say, creation date)?
Otherwise, if handcrafting is inevitable, what's the easiest way to build an in-application static direct index of all documents by their field (i.e. create a mapping 'doc_id' -> 'created' index position)? It won't change literally ever:)
--
Best Regards,
Igor Shalyminov
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: SpanQuery.getSpans() with document sorting
Posted by Michael McCandless <lu...@mikemccandless.com>.
And DocValues (new in 4.x).
In 4.2 DocValues can be loaded via the FieldCache API.
Mike McCandless
http://blog.mikemccandless.com
On Mon, Feb 25, 2013 at 5:19 AM, Ian Lea <ia...@gmail.com> wrote:
> FieldCache?
>
>
> --
> Ian.
>
>
> On Sun, Feb 24, 2013 at 4:46 PM, Igor Shalyminov
> <is...@yandex-team.ru> wrote:
>> A slightly more specific question:
>> Is it possible to load in RAM a single stored field for all the documents in the index via some Lucene data structures?
>>
>> --
>> Best Regards,
>> Igor Shalyminov
>>
>> 23.02.2013, 22:47, "Igor Shalyminov" <is...@yandex-team.ru>:
>>> Hi all!
>>>
>>> I'm using SpanQuery.getSpans() method for retrieving the precise information about all the matches through all the documents in the index.
>>> My question, is it possible to to get the spans in the sorted order by their document's field (say, creation date)?
>>>
>>> Otherwise, if handcrafting is inevitable, what's the easiest way to build an in-application static direct index of all documents by their field (i.e. create a mapping 'doc_id' -> 'created' index position)? It won't change literally ever:)
>>>
>>> --
>>> Best Regards,
>>> Igor Shalyminov
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>
> ---------------------------------------------------------------------
> 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
Re: SpanQuery.getSpans() with document sorting
Posted by Ian Lea <ia...@gmail.com>.
FieldCache?
--
Ian.
On Sun, Feb 24, 2013 at 4:46 PM, Igor Shalyminov
<is...@yandex-team.ru> wrote:
> A slightly more specific question:
> Is it possible to load in RAM a single stored field for all the documents in the index via some Lucene data structures?
>
> --
> Best Regards,
> Igor Shalyminov
>
> 23.02.2013, 22:47, "Igor Shalyminov" <is...@yandex-team.ru>:
>> Hi all!
>>
>> I'm using SpanQuery.getSpans() method for retrieving the precise information about all the matches through all the documents in the index.
>> My question, is it possible to to get the spans in the sorted order by their document's field (say, creation date)?
>>
>> Otherwise, if handcrafting is inevitable, what's the easiest way to build an in-application static direct index of all documents by their field (i.e. create a mapping 'doc_id' -> 'created' index position)? It won't change literally ever:)
>>
>> --
>> Best Regards,
>> Igor Shalyminov
>>
>> ---------------------------------------------------------------------
>> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: SpanQuery.getSpans() with document sorting
Posted by Igor Shalyminov <is...@yandex-team.ru>.
A slightly more specific question:
Is it possible to load in RAM a single stored field for all the documents in the index via some Lucene data structures?
--
Best Regards,
Igor Shalyminov
23.02.2013, 22:47, "Igor Shalyminov" <is...@yandex-team.ru>:
> Hi all!
>
> I'm using SpanQuery.getSpans() method for retrieving the precise information about all the matches through all the documents in the index.
> My question, is it possible to to get the spans in the sorted order by their document's field (say, creation date)?
>
> Otherwise, if handcrafting is inevitable, what's the easiest way to build an in-application static direct index of all documents by their field (i.e. create a mapping 'doc_id' -> 'created' index position)? It won't change literally ever:)
>
> --
> Best Regards,
> Igor Shalyminov
>
> ---------------------------------------------------------------------
> 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