Last active
February 19, 2017 02:35
-
-
Save asif31iqbal/d29523b55ce093dbad69f5b12fe22387 to your computer and use it in GitHub Desktop.
solr help
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Analyzer | |
- Tokenizer | |
- Series of filters | |
StandardAnalyzer | |
- StandardTokenizer | |
- StandardFilter, LowercaseFilter, StopFilter | |
Stemming: | |
- Swimming -> Swim, catlike, cattly -> cat | |
- Create custom Analyzer, override createComponents() | |
- PorterStemFilter | |
TermQuery: | |
- Singe word only | |
- Just name of the field and the term. No wildcard etc. | |
NGramTokenizer: | |
- asifq, 3 -> asi, sif, ifq | |
TermRangeQuery: | |
- Range for terms (e.g. get all documents with terms x to y, lexical order) | |
NumericRangeQuery: | |
- like TermRangeQuery, but for numeric values. | |
PrefixQuery: | |
- Prefix search | |
PhraseQuery: | |
- Multiple words | |
- Specify words and distance between them | |
BooleanQuery: | |
- Search multiple fields | |
- AND, OR, NOT combinations. MUST, SHOULD etc can be specified. | |
QueryParser: | |
- Another way of querying instead of directly using lucene's api methods. | |
NGramTokenizer: | |
- Good for efficient embedded search (as opposed to inefficient wildcard queries). | |
In Solr, at times, there could be duplications between Tokenizers and Filters. Example: EdgeNGramTokenizerFactory and EdgeNGramFilterFactory. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment