Method for solving problem of ApacheSolr phrase search inaccuracy
A phrase search and phrase technology, applied in the field of network search, can solve the problems of inaccurate search and inconsistent word segmentation results.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment 1
[0024] see figure 1 , figure 2 As can be seen, the present invention solves the inaccurate method of ApacheSolr phrase search; It is characterized in that: the method comprises the steps: Step 1: data reception, QParserPlugin receives the search statement parameter that client end transmits by http protocol; Step 2: phrase search , use regular expressions in QParserPlugin to match the phrases in the search statement parameters to get a set of phrases; in the parse method, first call the getString method to get the search statement, and then use the regular expression matching "quoted statement" to match the search statement. "Phrase search statement", step 3: data word segmentation and replacement, perform index mode word segmentation on the phrases in the phrase set obtained in step 2; replace the phrases in the original search statement with the phrases that have been divided into words; call the word segmenter to pair according to the index mode The matched phrase is ...
specific Embodiment 2
[0026] 1. In the first step, QParserPlugin receives the search statement parameters transmitted by the client through the http protocol;
[0027] 2. In the second step, use regular expressions in QParserPlugin to match the phrases in the search statement parameters to obtain a set of phrases;
[0028] 3. The third step is to traverse the phrases in the phrase set to perform word segmentation in the index mode;
[0029] 4. The fourth step is to replace the phrases in the original search statement with the phrases that have been divided into good words;
[0030] 5. In the fifth step, Apache Solr's parser converts the replaced search statement into Query.
[0031] 6. The sixth step is to enter the search process of Apache Solr;
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com