Hi Roxana,

Although it is possible to plug Lucene analyser in schema.xml, it is not the 
recommended approach.
Is there a special reason for doing that?

I suggest you to divide your analyser into pieces (tokeniser, token filter, 
char filter) and switch to the usual usage. Then you can read any custom 
parameters in your custom factory. 


Please see how StandardTokenizerFactory uses/reads maxTokenLength parameter for 
initialisation.

Ahmet




On Thursday, September 3, 2015 4:51 PM, Roxana Danger 
<roxana.dan...@reedonline.co.uk> wrote:



Hello,
      I constructed a custom analyser that needs to get some data from a
file. Is there any attribute in the analyzer element of the schema.xml that
I can use to initialize the parametersf my analyzer?
      Thank you very much in advance,
            Roxana

--

Reply via email to