1

I'm trying to create an index using Zend Lucene. In Zend's manual (http://framework.zend.com/manual/en/zend.search.lucene.extending.html) it is described how to use a default analyzer:

Zend_Search_Lucene_Analysis_Analyzer::setDefault(
new Zend_Search_Lucene_Analysis_Analyzer_Common_Text());

So actually this sets the default analyzer for all fields. Question is: If i have all kinds of fields, some hold num+string values, some holds regular words. Can i set a different analyzer for each field?

I see it is possible in java's lucene http://lucene.apache.org/java/3_0_1/api/core/org/apache/lucene/analysis/PerFieldAnalyzerWrapper.html

noamicko
  • 174
  • 1
  • 5

1 Answers1

1

This is currently not possible with the Zend_Lucene extension.

All the fields will be passed through the default analyzer.

You would have to extend the code somehow to specify which analyzer to use for each field or to use the default if none is specified.

Jerry Saravia
  • 3,737
  • 3
  • 24
  • 39