Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

How to get all terms with a special field and document after indexed

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


aljcn at 126

Aug 25, 2008, 7:42 PM

Post #1 of 4 (460 views)
Permalink
How to get all terms with a special field and document after indexed

When a document add to index, fields data will split to many terms and saved
into index. Now, How can I get these terms with special field and special
document from index.


--
View this message in context: http://www.nabble.com/How-to-get-all-terms-with-a-special-field-and-document-after-indexed-tp19154961p19154961.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


nttstar at gmail

Aug 25, 2008, 8:01 PM

Post #2 of 4 (438 views)
Permalink
Re: How to get all terms with a special field and document after indexed [In reply to]

I like your nick name.

For the question, I think you must iterate all the terms in index with
TermEnum and see if term will satisfy any of your concerns.

Best

2008/8/26 Beijing2008 <aljcn [at] 126>

>
> When a document add to index, fields data will split to many terms and
> saved
> into index. Now, How can I get these terms with special field and special
> document from index.
>
>
> --
> View this message in context:
> http://www.nabble.com/How-to-get-all-terms-with-a-special-field-and-document-after-indexed-tp19154961p19154961.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>
>


aljcn at 126

Aug 25, 2008, 8:50 PM

Post #3 of 4 (424 views)
Permalink
Re: How to get all terms with a special field and document after indexed [In reply to]

Very Thanks. But I'm sorry I can not catch what's your meaning.

A sentence through Analyzer.TokenStream method and will get a TokenStream
result. this TokenStream will save into index with someway, now I'm just to
get all token for this input sentence from index.

my english is very pool, maybe my artical can not easy to understand, so
sorry...


过佳 wrote:
>
> I like your nick name.
>
> For the question, I think you must iterate all the terms in index with
> TermEnum and see if term will satisfy any of your concerns.
>
> Best
>
> 2008/8/26 Beijing2008 <aljcn [at] 126>
>
>>
>> When a document add to index, fields data will split to many terms and
>> saved
>> into index. Now, How can I get these terms with special field and special
>> document from index.
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-get-all-terms-with-a-special-field-and-document-after-indexed-tp19154961p19154961.html
>> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
>> For additional commands, e-mail: java-user-help [at] lucene
>>
>>
>
>

--
View this message in context: http://www.nabble.com/How-to-get-all-terms-with-a-special-field-and-document-after-indexed-tp19154961p19155377.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


lucene at mikemccandless

Aug 26, 2008, 1:26 AM

Post #4 of 4 (419 views)
Permalink
Re: How to get all terms with a special field and document after indexed [In reply to]

It sounds like TermVectors may apply here?

The TermVectors for a doc are like a miniature inverted index just for
that one document. It lets you retrieve all terms and their
frequencies, plus optionally offset and positions information for each
term occurrence.

Mike

Beijing2008 wrote:

>
> Very Thanks. But I'm sorry I can not catch what's your meaning.
>
> A sentence through Analyzer.TokenStream method and will get a
> TokenStream
> result. this TokenStream will save into index with someway, now I'm
> just to
> get all token for this input sentence from index.
>
> my english is very pool, maybe my artical can not easy to
> understand, so
> sorry...
>
>
> 过佳 wrote:
>>
>> I like your nick name.
>>
>> For the question, I think you must iterate all the terms in index
>> with
>> TermEnum and see if term will satisfy any of your concerns.
>>
>> Best
>>
>> 2008/8/26 Beijing2008 <aljcn [at] 126>
>>
>>>
>>> When a document add to index, fields data will split to many terms
>>> and
>>> saved
>>> into index. Now, How can I get these terms with special field and
>>> special
>>> document from index.
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/How-to-get-all-terms-with-a-special-field-and-document-after-indexed-tp19154961p19154961.html
>>> Sent from the Lucene - Java Users mailing list archive at
>>> Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
>>> For additional commands, e-mail: java-user-help [at] lucene
>>>
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/How-to-get-all-terms-with-a-special-field-and-document-after-indexed-tp19154961p19155377.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.