Antonio F.
Antonio F.

Reputation: 431

Lucene - How to discard numeric terms in indexing?


Using StandardAnalyzer, my Lucene contain numeric terms too(i.e. "200"). So number of term in my index is too big.
Does anyone know if exists an Analyzer or Tokenizer that discards numeric terms?
If not, is there any easy way to get it?

Upvotes: 1

Views: 294

Answers (1)

Yuval F
Yuval F

Reputation: 20621

Antonio, I suggest you try using SimpleAnalyzer.

If this does not work for you, you may have to write your own analyzer.

Upvotes: 3

Related Questions