First, Introduction1.1 The features we need to implement use SOLR to search for product information in e-commerce websites, search for product information by keyword, category, price, or sort by price. 1.2 Implementation methods in some large-scale
Chapter 1 Solr In Action
1.1 do I need a search engine?
Chapter 1 Solr Introduction
Overview of this chapter:
· Data features processed by search engines
· Common search engine Use Cases
· Introduction to Solr core modules
· Reasons for choosing
SOLR uses the Lucene search library as the core, provides full-text indexing and search for open source enterprise platforms, provides rest of the Http/xml and JSON APIs, and if you're new to SOLR, get started with me! This tutorial takes solr4.8 as
SolrWhat is a document?SOLR is a document storage and retrieval engine, and every piece of data submitted to SOLR is a document. In the SOLR schema file we can specify the name and type of the field, a document we map to a specific type of field
1, common query parameter descriptionQ-The query string is required.FL-Specifies that the contents of those fields be returned, separated by commas or spaces.Start-Returns the offset position of the first record in the full found result, starting at
Query Parameters
Frequently used:
Q-query string, required.
FL-specify the content of the returned fields, which are separated by commas (,) or spaces.
Start-return the offset position of the first record in the complete found result.
Ideally, the search engine only returns documents related to user queries. In a real-world query, editors (not finding a more appropriate expression) often need to specify specific documents in the search results in a specific location. There are
Requirements: Commodity sorting, inventory-free items in the back (sort).Search:Default search: DF:You can see that the 1th and 6th stock in the left figure is 0.Now the demand is to put the two stocks of 0 of the goods in the last
Query parametersCommon:
q-query string, required.
fl-Specifies that the contents of those fields be returned, separated by commas or spaces.
start-Returns the offset position of the first record in the full found result, starting at
Query parametersCommon:
q-query string, required.
fl-Specifies that the contents of those fields be returned, separated by commas or spaces.
start-Returns the offset position of the first record in the full found result, starting at
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.