1
votes

I am new to solr and i am working with it using solr 3.6, eclipse and tomcat.

Baiscally I need to write a customized tokenizer and use it for both indexing and searching, so i think i need to include it into solr.war, schema.xml and maybe solrconfig.xml? Searching around the web, i dont find any quick tutorial. Write a tokenizer to extend the generic Tokenizer class can be simple, but how to make it compiled and included into solr.war? people said on the web that i can write the tokenizer and include it in solr's classpath, but what's solr's classpath then...

Thanks a lot for your help!

1
@javanna i know you are the expert, can you please give me some suggestions on how i can get a start on this? thanks a lot!! :)trillions
There's no need to mention me on every question you ask :) even because I don't receive a notification if I'm not involved in the question. I'm not the only expert here, anyway I read all solr questions daily, no worries!javanna

1 Answers

2
votes
  • create a jar with your tokenizer

    < lib dir="../add-everything-found-in-this-dir-to-the-classpath" />

  • add in solrconfig.xml an element pointing to the dir where you have the jar
  • include the tokenizer in the schema.xml as any other tokenizer

Look at the example\ dir in 3.6 distribution.

edit: sample for lib element was invisible