dismax

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

Dismax Request Handler

天大地大妈咪最大 提交于 2019-12-23 05:29:36
问题 I'm using solr to search a set of data by name (e.g. "Dan" or "Joe Smith"). I'd like to return the results specified by the query (edit: with a wildcard on the end) in an order specified by another indexed field double_score (e.g. 10.0 or 72.3). I currently have the following which fails to work at all: <!-- Note that the default search is on the field name --> <requestHandler name="/scoresearch" class="solr.SearchHandler" default="true"> <!-- <lst name="invariants"> <str name="q">{!boost b

How to boost fields in solr

夙愿已清 提交于 2019-12-21 12:13:55
问题 I already have the boost determined before hand. I have a field in the solr index called boost1 . This boost field will have a value from 1 to 10 similar to google PR rank. This is the boost that should be applied to every query ran in solr. here are the fields in my index Id Title Text Boost1 The boost field should be apply to every query. I am trying to implement functionality similar to Google PR rank. Is there a way to do this using solr? 回答1: you can add the boost during query e.g. q={

AzureSearch : Dismax query parser capabilities

自古美人都是妖i 提交于 2019-12-12 03:46:11
问题 Is there any possibility of using Dismax Query Parser like capabilities in Azure search. e.g. Query Fields (qf), Phrase Fields (pf), boost function or boost query. I am aware of the fact that currently Azure Search supports lucene query syntax. Want to check if there is some another term / parser available for equivalent functionalities or if not then is AzureSearch team is looking to incorporate it in coming time. Here is the link for reference to DismaxQueryParser https://cwiki.apache.org

Wildcard searches using dismax handler?

自古美人都是妖i 提交于 2019-12-10 13:48:26
问题 I have successfully indexed files, and want to be able to search using wildcards. I am currently using the dismaxRequestHandler (QueryType = dismax) for the searches so that I can search all the fields for the query. A general search like 'computer' returns results but 'com*er' doesn't return any results. Similary, a search like 'co?mput?r' returns no results. Could someone please tell me a way to continue using dismax and be able to do wildcard searches in the 'q' field? Does edismax handler

Solr Dismax handler - whitespace and special character behaviour

白昼怎懂夜的黑 提交于 2019-12-06 15:49:00
问题 I've got strange results when I have special characters in my query. Here is my request : q=histoire-france&start=0&rows=10&sort=score+desc&defType=dismax&qf=any^1.0&mm=100% Parsed query : <str name="parsedquery_toString">+((any:histoir any:franc)) ()</str> I've got 17000 results because Solr is doing an OR (should be AND). I have no problem when I'm using a whitespace instead of a special char : q=histoire france&start=0&rows=10&sort=score+desc&defType=dismax&qf=any^1.0&mm=100% <str name=

How to boost fields in solr

会有一股神秘感。 提交于 2019-12-04 04:14:14
I already have the boost determined before hand. I have a field in the solr index called boost1 . This boost field will have a value from 1 to 10 similar to google PR rank. This is the boost that should be applied to every query ran in solr. here are the fields in my index Id Title Text Boost1 The boost field should be apply to every query. I am trying to implement functionality similar to Google PR rank. Is there a way to do this using solr? Jayendra you can add the boost during query e.g. q={!boost b=boost1} How_can_I_boost_the_score_of_newer_documents However, this may need to be added