lucene

Lucene: exact matches aren't shown first

…衆ロ難τιáo~ 提交于 2020-01-03 05:49:07
问题 I am using the demo IndexFiles and SearchFiles classes to index and search which are in org.apache.lucene.demo packet. My issue is when I use a query that contains more than a word, I am not getting results that have the exact match. For instance: Enter query: "natural language" Searching for: "natural language" 298 total matching documents 1. download\researchers.uq.edu.au\fields-of-research\natural-language-processing .txt 2. download\researchers.uq.edu.au\research-project\16267.txt 3.

Solr Dismax Config for Boost Scoring

旧时模样 提交于 2020-01-03 04:57:05
问题 I've seen many of this topics here but still confusing to implement it. In my case i need to do these: Search certain phrases in title & text and give title^3, text^1 based on result in #1, i need to boost the results by modified time i've tried these with different results: /solr/select ?q={!boost b=$dateboost v=$qq defType=dismax} &dateboost=recip(ms(NOW/HOUR,modified),86400000,1,1) &qq=video &qf=title^3+text &pf=title^3+text &debugQuery=true And Normal Query with different setting in

DIH Scheduling in Solr

↘锁芯ラ 提交于 2020-01-03 04:53:09
问题 I have just started playing around with Solr and I have it deployed and running on Tomcat. I have the schema and data import handler set up and it indexes the files just fine. Now I want to schedule this dataImportHandler to run every hour or so. There is a wiki page detailing the files here. But there are not instructions on where to create the files and how to deploy them A similar question has been asked on Stack Overflow before here. The answer was to "Create classes ApplicationListener,

Need help to decide between the type of spellchecker to use in solr?

早过忘川 提交于 2020-01-03 03:21:26
问题 I have a list of cities on mysql db which is hooked onto a UI for autocompletion purposes. I am currently using solr-5.3.0. Data import is happening through scheduled delta imports. I have the following questions: I want to implement spell checker to this feature. I tried using: DirectSolrSpellChecker IndexBasedSpellChecker FileBasedSpellChecker Out of these 3 only FileBasedSpellChecker is able to give suggestions that solely exists on db. For eg, while searching cologne I've got results like

Need help to decide between the type of spellchecker to use in solr?

☆樱花仙子☆ 提交于 2020-01-03 03:21:06
问题 I have a list of cities on mysql db which is hooked onto a UI for autocompletion purposes. I am currently using solr-5.3.0. Data import is happening through scheduled delta imports. I have the following questions: I want to implement spell checker to this feature. I tried using: DirectSolrSpellChecker IndexBasedSpellChecker FileBasedSpellChecker Out of these 3 only FileBasedSpellChecker is able to give suggestions that solely exists on db. For eg, while searching cologne I've got results like

How to make a ST_spatial query ST_Within Orientdb by selecting spatial classes

…衆ロ難τιáo~ 提交于 2020-01-03 03:05:32
问题 I am trying to understand how to use the LUCENE Spatial queries in Orientdb 2.2.17 using pyorient. I have note yet figure it out how to select all the properties of a point vertex class that is within a polygon vertex from another class. Region Vertex Class has two properties: name coordinates (EMBEDDED OPolygon) LUCENE index CREATE CLASS Region EXTENDS V CREATE PROPERTY Region.name IF NOT EXISTS STRING CREATE PROPERTY Region.coordinates IF NOT EXISTS EMBEDDED OPolygon CREATE INDEX Region

How to make a ST_spatial query ST_Within Orientdb by selecting spatial classes

二次信任 提交于 2020-01-03 03:05:07
问题 I am trying to understand how to use the LUCENE Spatial queries in Orientdb 2.2.17 using pyorient. I have note yet figure it out how to select all the properties of a point vertex class that is within a polygon vertex from another class. Region Vertex Class has two properties: name coordinates (EMBEDDED OPolygon) LUCENE index CREATE CLASS Region EXTENDS V CREATE PROPERTY Region.name IF NOT EXISTS STRING CREATE PROPERTY Region.coordinates IF NOT EXISTS EMBEDDED OPolygon CREATE INDEX Region

Lucene Based Searching

99封情书 提交于 2020-01-03 02:13:58
问题 I've a problem in Lucene based searching. I have designed a document with five fields. Consider the document be Address with addressline1, addressline2, city, state and pin. If a search is to be performed, then the search has be done in all the fields, so I'm using boolean term queries. So the results would be retrieved. Now I also have to respond not only with responses but also with the matching field. For eg if the city field matches the search, then I should respond as city matches the

Azure Search - exact match as first or single result

烂漫一生 提交于 2020-01-02 20:10:12
问题 I'm using Azure Search based on the rich Lucene Query Parser syntax. I defined to "~1" as additional parameter to one symbol for distance ). But I faced with problem, that the entity is not ordered even if there is exact match. (For example,"blue~1" would return "blues", "blue", "glue". Or when searching product SKU like "P002", I would get result "P003", "P005", "P004", "P002", "P001", "P006" ) So my question: is there some way to define, that the entity with exact match must be first in

Azure Search - exact match as first or single result

白昼怎懂夜的黑 提交于 2020-01-02 20:10:02
问题 I'm using Azure Search based on the rich Lucene Query Parser syntax. I defined to "~1" as additional parameter to one symbol for distance ). But I faced with problem, that the entity is not ordered even if there is exact match. (For example,"blue~1" would return "blues", "blue", "glue". Or when searching product SKU like "P002", I would get result "P003", "P005", "P004", "P002", "P001", "P006" ) So my question: is there some way to define, that the entity with exact match must be first in