lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <>
Subject RE: Lucene TypeAttribute not used during querying
Date Wed, 23 Sep 2015 09:21:21 GMT

The type attribute is not stored in index. The main intention behind this attribute is to
use it inside the analysis chain. E.g. you have some tokenizer/stemmer/whatever that sets
the attribute. The last TokenFilter before indexing may then change the term accordingly (e.g.
adding the type as a payload, or append it to the term itsself) to get the information into
index - but this is mainly your task. The same applies for other language specific attributes
(like Japanese ones). The keyword attribute is another example, it is also not indexed, but
is solely used to control behavior of later TokenFilters (e.g. prevent stemming).


Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen

> -----Original Message-----
> From: Paul Bedaride []
> Sent: Wednesday, September 23, 2015 11:16 AM
> To:
> Subject: Lucene TypeAttribute not used during querying
> Hello,
> I wonder why the TypeAttribute is not used for queries ?
> It seems that it is used only during analysis.
> Why it is not used in org.apache.lucene.index.Term ?
> Paul B├ędaride

View raw message