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 wuqi <ch...@gmail.com> on 2008/04/02 13:03:35 UTC

How to reconstruct field value from index ?

Hi,

I want to reconstruct the field value from index, just the same as the function "Reconstruct and Edit" in  the tool "Luke" . Just any hints is OK. Thanks in advance.

Thanks
-qi 

Re: How to reconstruct field value from index ?

Posted by Erick Erickson <er...@gmail.com>.
This has been discussed many times on the list. If you go to the searchable
version of the mailing list, you'll find a wealth of information on this
topic much
more quickly..

Best
Erick

On Wed, Apr 2, 2008 at 7:03 AM, wuqi <ch...@gmail.com> wrote:

> Hi,
>
> I want to reconstruct the field value from index, just the same as the
> function "Reconstruct and Edit" in  the tool "Luke" . Just any hints is OK.
> Thanks in advance.
>
> Thanks
> -qi

Re: How to reconstruct field value from index ?

Posted by Andrzej Bialecki <ab...@getopt.org>.
wuqi wrote:
> Thank you Karl. I am just interested in how does Luke reconstruct
> with field that is unsorted and has no TermVector. Seems Luke have to
> iterate all the terms in the index,and check whether certain term is
> contained in the document.

Correct, that's exactly how this function works in Luke.

For each term it checks whether the term belongs to the document, 
retrieves all positions of this term and puts the term at correct 
positions in an array, which represents all terms of the document. 
Finally elements of this array are concatenated using spaces.

That's all there is to it :)

-- 
Best regards,
Andrzej Bialecki     <><
  ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: How to reconstruct field value from index ?

Posted by wuqi <ch...@gmail.com>.
Thank you Karl.
I am just interested in how does Luke reconstruct with field that is unsorted and has no TermVector. Seems Luke have to  iterate all the terms in the index,and check whether certain term is contained in the document.


----- Original Message ----- 
From: "Karl Wettin" <ka...@gmail.com>
To: <ja...@lucene.apache.org>
Sent: Wednesday, April 02, 2008 10:14 PM
Subject: Re: How to reconstruct field value from index ?


> wuqi skrev:
>> Hi,
>> 
>> I want to reconstruct the field value from index, just the same as the function "Reconstruct and Edit" in  the tool "Luke" . Just any hints is OK. Thanks in advance.
>> 
>> Thanks
>> -qi 
> 
> http://issues.apache.org/jira/browse/LUCENE-1016
> 
> 
>    karl
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>

Re: How to reconstruct field value from index ?

Posted by Karl Wettin <ka...@gmail.com>.
wuqi skrev:
> Hi,
> 
> I want to reconstruct the field value from index, just the same as the function "Reconstruct and Edit" in  the tool "Luke" . Just any hints is OK. Thanks in advance.
> 
> Thanks
> -qi 

http://issues.apache.org/jira/browse/LUCENE-1016


    karl

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org