Document
Each document consists of one or more fields (field), each with its own type: string, text, etc. There are infinitely many types of domains in theory, because the type of a domain can consist of 0 or more analysis stages that determine how the domain is indexed.
All domains have to specify a defined type.
Query syntax:
Requirements must appear:
+ New +house
New and House
Optional term:
New house
New OR House
Cannot appear:
New house-rental
New house not rental
SOLR Default actions:
OR
Settings:? q=new house&q.op=or
? q=new House&q.op=and
If you modify the default action for and, the Q=new house, although not displaying the use of logic and operators, will require that these two terms appear at the same time.
You can also display the use operator to overwrite : q=new or House
Phrase query:
Require terms to appear in the same order: "New House"
SOLR (actually Lucene implementation) is the process of finding documents by index:
If query: New home
Each term will be queried independently in the index.
After each term-matching document is structured, Lucene merges the results according to the default operator (and, or) relationship.
Term position used in phrase queries:
Save the position of term
Scope query:
Old:[18 to 21]
Title:[boat to bout]
SOLR in Action Chapter III