Example of solr Chinese Word Segmentation mmseg4j
Copyright information: this information can be reproduced at will. During reprinting, you must mark the article as a hyperlink.Source, That is, the following statement.
Source:
1. Parameters of the Corequeryparam query
1) Q: query string, required.
2) Q.op: Overrides the Schema.xml defaultoperator (with "and" or "or" in the case of a space), which is usually specified by default.
3) DF: The default query field, typically
FL: A comma-separated list that specifies the field set to be returned in the document results. The default value is "*", indicating all fields.Deftype: Specify the query parser. Commonly Used deftype = Lucene, deftype = dismax, deftype = edismaxQ:
FL: A list separated by commas (,). It is used to specify the list to be returned in the document results.FieldSet. The default value is"*All fields.
Deftype: Specify query parser. Commonly Used deftype = Lucene, deftype = dismax, deftype =
FL: A list separated by commas (,). It is used to specify the list to be returned in the document results.FieldSet. The default value is"*All fields.
Deftype: Specify query parser. Commonly Used deftype = Lucene, deftype = dismax, deftype =
Function
Through function query, we can use the value of the numeric domain or the function of a specific value related to the domain to score the document.How to Use
Here there are two main methods to use function query, both of which are through
Searching in the e-commerce platform is a very important function, mainly including searching word category navigation, automatic prompt and searching sorting.
Automatic prompt: If displayed, You can automatically prompt based on the search term,
RoleThe function query allows us to score the document by taking advantage of the value of the numeric field or a function of a specific value associated with the domain.How to useThere are two main ways to use function queries, both of which are
The Deftype of Solr has dismax/edismax two species, the difference between the two, see: http://blog.csdn.net/duck_genuine/article/details/8060026The following example is used to demonstrate the following scenario:There is a Web site in which the
I.Dismax
1. Tie : Query and init Param for tiebreaker Value2. QF : Query and init Param for query Fields3. PF : Query and init Param for phrase boost Fields4. Pf2 : Query and init Param for bigram phrase boost Fields5. PF3 : Query and init Param
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.