lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Armins Stepanjans <>
Subject Analyzer is not called upon executing addDocument()
Date Tue, 09 Jan 2018 13:51:39 GMT

When I create a document with multiple StringFields and add it to
IndexWriter using addDocument(Document), the StringFields within the
Document are not tokenized nor filtered according to Analyzer's
specifications, however when I test my Analyzer, while looping through
tokens by explicitly calling incrementToken() on OfsetAttribute, created
using Analyzer's TokenStream (as per instructions in Lucene docs (under
"Invoking The Analyzer") :,
I obtain the expected results.

Please let me know if any parts of my code would be helpful to include for
Could anyone tell me what seems like the critical point here?


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