lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Garski <>
Subject RE: Retrieving Attributes
Date Sat, 27 Feb 2010 18:26:00 GMT

FYI - I moved this thread to the user list as it applies to the use rather than development
of Lucene.Net.


-----Original Message-----
From: Andy Pook []
Sent: Fri 2/26/2010 10:58 PM
Subject: Re: Retrieving Attributes
I'd like to be able to access the collection/stream of Attributes in a
Field _after_ I've done a search.

The result of a search is a collection of Documents. A Document has
Fields. But I cannot see a simple way of getting at the Attributes of
each Field.

For example: The TypeAttribute has a default value of "word". We have
a custom Tokenizer that adds extra "tokens" with the TypeAttribute set
to "tag".
After a search is done, I'd like to be able to iterate over the
"tokens" in this field and do something with the "tag"s and ignore the

I hope this is more coherent :)


On 26 February 2010 18:40, Michael Garski <> wrote:
> Andy,
> Can you give a bit more information on what you are looking to do?  I
> don't quite understand what you are looking to do.
> Michael
> -----Original Message-----
> From: Andy Pook []
> Sent: Friday, February 26, 2010 10:37 AM
> To:
> Subject: Retrieving Attributes
> Attributes are a great thing from the indexing side of things. What
> I'd really like to be able to do is find a document. Then be able to
> retrieve the attributes for each field.
> We are considering storing some custom attributes against some of the
> "tokens" in a field. But we would like to be able to effectively
> reconstitute the TokenStream for a field.
> Is that possible? I can't see anything simple that gives access to
> attributes on a per field basis. Any clues?
> Thanks in advance,


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