Web / Apache Solr Interview questions
Define analyzer in Solr?
An analyzer is the pipeline Solr runs over text to convert raw input into a stream of indexable or searchable tokens. It is attached to a field type and can differ for indexing and for querying.
An analyzer is made up of exactly one tokenizer, which splits text into initial tokens, followed by zero or more token filters, which modify that stream, for example lowercasing, removing stop words, or applying stemming.
Choosing the right analyzer chain is what makes searches like "running" match "run" and "USA" match "U.S.A." even though the stored text differs from the query text.
More Related questions...