Documentation
Queries
Queries supported by bleve: User Guide Getting Started (/docs/Getting%20Started/) Terminology A term query is the simplest possible query. It performs an exact match in the index for the provided term. (/docs/Terminology/) Most of the time users should use a Match Query instead. Text Analysis (/docs/TextAnalysis/) Analyzers (/docs/Analyzers/) Character Filters A match query is like a term query, but the input text is analyzed first. An attempt is made to use the same analyzer that was used (/docs/Character-Filters/) when the field was indexed. Tokenizers (/docs/Tokenizers/) The match query can optionally perform fuzzy matching. If the fuzziness parameter is set to a non-zero integer the analyzed text Token Filters (/docs/Tokenwill be matched with the specified level of fuzziness. Also, the prefix_length parameter can be used to require that the term also Filters/) have the same prefix of the specified length. Introduction to Index Mappings (/docs/Index-Mapping/) Queries Query String Query A phrase query searches for terms occurring in the specified position and offsets. (/docs/Query-String-Query/) The phrase query is performing an exact term match for all the phrase constituents. If you want the phrase to be analyzed, Sorting (/docs/Sorting/) consider using the Match Phrase Query instead. Index Aliases (/docs/IndexAlias/) Example Applications (/docs/Example-Applications/) Command-line Utility The match phrase query is like the phrase query, but the input text is analyzed and a phrase query is built with the terms resulting (/docs/bleve/) from the analysis. How do I ...? Ignore/Disable Sections of Documents (/docs/Disabling%20Sections%20of%20Documents/) The prefix query finds documents containing terms that start with the provided prefix. Highlight Matches in Results (/docs/Highlight%20Matches%20in%20Results/) Include Facets in Results A fuzzy query is a term query that matches terms within a specified edit distance (Levenshtein distance). Also, you can optionally (/docs/Result-Faceting/) specify that the term must have a matching prefix of the specified length. Pronounce Bleve (/docs/Pronunciation/) Applications Using Bleve (/docs/Applications-using-bleve/) The conjunction query is a compound query. Result documents must satisfy all of the child queries. Developer Guide Building (/docs/Building/) Using blevex packages (/docs/Blevex/) The disjunction query is a compound query. Result documents must satisfy a configurable min number of child queries. By Contributing (/docs/Contributing/) default this min is set to 1. Package Structure (/docs/Package-Structure/) Index Structure (/docs/IndexStructure/) The boolean query is useful combination of conjunction and disjunction queries. The query takes three lists of queries:
Term
Match
Phrase
Match Phrase
Prefix
Fuzzy
Conjunction Disjunction
Boolean
must - result documents must satisfy all of these queries should - result documents should satisfy at least minShould of these queries must not - result documents must not satisfy any of these queries The minShould value is configurable, but defaults 1 if there is at least 1 should query.
Numeric Range The numeric range query finds documents containing a numeric value in the specified field within the specified range. You can omit one endpoint, but not both. The inclusiveMin and inclusiveMax properties control whether or not the end points are included or excluded.
Date Range The date range query finds documents containing a date value in the specified field within the specified range. You can omit one endpoint, but not both. The inclusiveStart and inclusiveEnd properties control whether or not the end points are included or excluded.
Query String The query language query allows humans to describe complex queries using a simple syntax. There is a separate page with the full query language specification (/docs/Query-String-Query/)
Match All The match all query will match all documents in the index.
Match None The match none query will not match any documents in the index.
Doc ID Query The doc ID query will match only documents that contain one of the supplied document identifiers.
(mailto:
[email protected])
(https://twitter.com/blevesearch)
(https://github.com/blevesearch) Site built with
Hugo (http://gohugo.io/). Search powered by Bleve (http://www.blevesearch.com/). © Couchbase (http://couchbase.com/) 2015-2016