SOLR in Action Chapter III

Source: Internet
Author: User
Tags solr

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.