Hi Ahmet, You are absolutely right, I will divide my analyzer as suggested. Thank you very much,
Roxana On 3 September 2015 at 16:23, Ahmet Arslan <iori...@yahoo.com.invalid> wrote: > 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 > > -- > -- Roxana Danger | Data Scientist Dragon Court, 27-29 Macklin Street, London, WC2B 5LX Tel: 020 7067 4568 [image: reed.co.uk] <http://www.reed.co.uk/> The UK's #1 job site. <http://www.reed.co.uk/> [image: Follow us on Twitter] <https://twitter.com/reedcouk> <https://www.linkedin.com/company/reed.co.uk> [image: Like us on Facebook] <https://www.facebook.com/reedcouk/> <https://plus.google.com/u/0/+reedcouk/posts> It's time to Love Mondays ยป <http://www.reed.co.uk/lovemondays>