1

Lets say you want to create a search engine for a site like github or stackoverflow, where the majority of the textual content is actually source code. What would be a good Lucene tokenizer for dealing with documents of this type?

1
  • Generally, source code uses whitespace and punctuation to separate things, so I would think simply using StandardAnalyzer would probably work pretty well, or possibly a custom analyzer like StandardAnalyzer but without the LowercaseFilter, depending on your needs. Is there some particular feature you are looking for, as far as how you would like code to be tokenized? Commented Nov 23, 2013 at 18:51

1 Answer 1

1

This is what you are looking for : http://www.opensourceconnections.com/2013/02/18/indexing-stackoverflow-in-solr/ . This covers all the steps and more.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.