Re: Overriding Sort and boosting some docs to the top

2021-02-24 Thread Mark Robinson
Thanks Marcus for your response. Best, Mark On Wed, Feb 24, 2021 at 4:50 PM Markus Jelsma wrote: > I would stick to the query elevation component, it is pretty fast and > easier to handle/configure elevation IDs, instead of using function queries > for it. We have customers that set a dozen of

Re: Overriding Sort and boosting some docs to the top

2021-02-24 Thread Markus Jelsma
I would stick to the query elevation component, it is pretty fast and easier to handle/configure elevation IDs, instead of using function queries for it. We have customers that set a dozen of documents for a given query and it works just fine. I also do not expect the function query variant to be

Re: Overriding Sort and boosting some docs to the top

2021-02-24 Thread Mark Robinson
Thanks for the reply Markus! I did try it. My question specifically was (repasting here):- Which is more recommended/ performant? Note:- Assume that I have hundreds of ids to boost like this. Is there a difference to the answer if docs to be boosted after the sort is less? Thanks! Mark On Wed,

Re: Overriding Sort and boosting some docs to the top

2021-02-24 Thread Markus Jelsma
Hello, You are probably looking for the elevator component, check it out: https://lucene.apache.org/solr/guide/8_8/the-query-elevation-component.html Regards, Markus Op wo 24 feb. 2021 om 11:59 schreef Mark Robinson : > Hi, > > I wanted to sort and then boost some docs to the top and these docs

Overriding Sort and boosting some docs to the top

2021-02-24 Thread Mark Robinson
Hi, I wanted to sort and then boost some docs to the top and these docs should be my first set in the results and the following ones appearing according to my sort criteria. I understand that sort overrides bq hence bq may not be used in this case - I brought my boost into sort using "query()" a

Re: optimize boosting parameters

2020-12-08 Thread Derek Poh
We monitor the response time (pingdom) of the page that uses these boosting parameters. Since the addition of these boosting parameters and an additional field to search on (which I will create a thread on it in the mailing list), the page average response time has increased by 1-2 seconds

Re: optimize boosting parameters

2020-12-08 Thread Erick Erickson
done. Then spent a lot of time figuring out that the person reporting the problem hadn’t had coffee yet. Or the network was slow. Or…. If it does turn out to be the boosting (and IIRC the map function can be expensive), can you pre-compute some number of the boosts? Your requirements look like they

Re: optimize boosting parameters

2020-12-07 Thread Radu Gheorghe
://sematext.com Solr and Elasticsearch Consulting, Training and Production Support > On 8 Dec 2020, at 06:17, Derek Poh wrote: > > Hi Radu > > Apologies for not making myself clear. > > I would like to know if there is a more simple or efficient way to craft the > boosting

Re: optimize boosting parameters

2020-12-07 Thread Derek Poh
Hi Radu Apologies for not making myself clear. I would like to know if there is a more simple or efficient way to craft the boosting parameters based on the requirements. For example, I am using 'if', 'map' and 'termfreq' functions in the bf parameters. Is th

Re: optimize boosting parameters

2020-12-07 Thread Radu Gheorghe
- https://sematext.com Solr and Elasticsearch Consulting, Training and Production Support > On 7 Dec 2020, at 10:51, Derek Poh wrote: > > Hi > > I have added the following boosting requirements to the search query of a > page. Feedback from monitoring team is that the overall re

optimize boosting parameters

2020-12-07 Thread Derek Poh
Hi I have added the following boosting requirements to the search query of a page. Feedback from monitoring team is that the overall response of the page has increased since then. I am trying to find out if the added boosting parameters (below) could have contributed to the increased. The

Re: DelimitedBoostTokenFilterFactory Issue - Boosting and StandardTokenizerFactory

2020-04-26 Thread Erick Erickson
This line is kind of hidden in the javadocs in DelimitedBoostTokenFilter.java: "Note make sure your Tokenizer doesn't split on the delimiter, or this won't work” So you need to use a different tokenizer. StandardTokenizer is already splitting on the | character as you’ve seen. WhitespaceTokeni

DelimitedBoostTokenFilterFactory Issue - Boosting and StandardTokenizerFactory

2020-04-26 Thread Ivana Spasojevic
ogy_term_original_name:tumour, morphology_term_original_name:0.6], 0, true)]) (spanOr([spanNear([morphology_term_pathognomonic:tumor, morphology_term_pathognomonic:0.8], 0, true), spanNear([morphology_term_pathognomonic:neoplasm, morphology_term_pathognomonic:0.7], 0, true) Problem is in using StandardTokenizerFactory.

Give boosting to a grouped documents in Solr Based on number of results in a group

2020-04-22 Thread Ajay Sharma
2 because he has more number of products related to mobile phones. Is there a way in Solr where I can boost a supplier and give boosting to a grouped documents in Solr Based on the number of results in a group. Any help will be appreciated. -- Thanks & Regards, Ajay Sharma Software Engi

phrase boosting by edismax

2020-03-20 Thread Szűcs Roland
f attila q józsef attila q józsef attila q józsef attila")^14.0 | (publisher:"q józsef attila q józsef attila q józsef attila q józsef attila q józsef attila")^6.0 | (description:"q józsef attila q józsef attila q józsef attila q józsef attila q józsef attila")^2.0)* The highligh

Re: Boosting only top n results that match a criteria

2019-12-28 Thread Emir Arnautović
ning - http://sematext.com/ > On 27 Dec 2019, at 19:08, Nitin Arora wrote: > > Simply boosting on class A1 won't work since there may be many documents > from that class, all getting equal boost. I want only top 5 docs of that > class to get the boost. > > On Fr

Re: Boosting only top n results that match a criteria

2019-12-27 Thread Nitin Arora
Simply boosting on class A1 won't work since there may be many documents from that class, all getting equal boost. I want only top 5 docs of that class to get the boost. On Fri, 27 Dec 2019 at 22:42, Erick Erickson wrote: > Yes. Rerank essentially takes the top N results of one quer

Re: Boosting only top n results that match a criteria

2019-12-27 Thread Nitin Arora
It sounds like this will work. Can we do it in a single query? Something like: OR ( AND class=A1 AND rows=5)^high_boost I am not good with SOLR syntax and need you to validate if such a query will serve the purpose. On Fri, 27 Dec 2019 at 22:10, Walter Underwood wrote: > You could use two queri

Re: Boosting only top n results that match a criteria

2019-12-27 Thread Erick Erickson
Yes. Rerank essentially takes the top N results of one query and re-scores them through another query. So just boost the secondary query. But you may not even have to do that. Just add a boost clause to a single query and boost your class A1 quite high. See “boost” and/or “bq”. Best, Erick > O

Re: Boosting only top n results that match a criteria

2019-12-27 Thread Walter Underwood
You could use two queries. Do the first with rows=5, then for the second use an fq that filters out the IDs of those five. You’ll need to do the first query again to do the second and further page of results statelessly, but that should still be pretty fast. wunder Walter Underwood wun...@wunderw

Re: Boosting only top n results that match a criteria

2019-12-27 Thread Nitin Arora
Hi Erick, I was not able to figure how exactly I will use RerankQParserPlugin to achieve the desired reranking. I see that I can rerank all the top RERANK_DOCS results - it is possible that they contain a hundred results of class A1 or none. But the desired behaviour I want is to pick (only) the to

Re: Boosting only top n results that match a criteria

2019-12-27 Thread Nitin Arora
Hi Emir, This will filter my results to only include top 5 results from class A1. I want the other results to stay as is while boosting only the top 5 results of class A1. On Fri, 27 Dec 2019 at 19:19, Emir Arnautović wrote: > Hi Nitin, > Can you simply filter and return

Re: Boosting only top n results that match a criteria

2019-12-27 Thread Erick Erickson
Have you seen RerankQParserPlugin? Best, Erick > On Dec 27, 2019, at 8:49 AM, Emir Arnautović > wrote: > > Hi Nitin, > Can you simply filter and return top 5: > > ….&fq=class:A1&rows=5 > > Emir > -- > Monitoring - Log Management - Alerting - Anomaly Detection > Solr & Elasticsearch Con

Re: Boosting only top n results that match a criteria

2019-12-27 Thread Emir Arnautović
Hi Nitin, Can you simply filter and return top 5: ….&fq=class:A1&rows=5 Emir -- Monitoring - Log Management - Alerting - Anomaly Detection Solr & Elasticsearch Consulting Support Training - http://sematext.com/ > On 27 Dec 2019, at 13:55, Nitin Arora wrote: > > Hello, I have a comple

Boosting only top n results that match a criteria

2019-12-27 Thread Nitin Arora
Hello, I have a complex solr query with various boosts applied that returns, say a few hundred results. Out of these hundreds of results I want to further boost, say the top 5 results that satisfy a particular criteria - e.g. class=A1. So I want the top 5 results from class A1 in my existing result

Re: Best field type for boosting all documents

2019-09-16 Thread Paras Lehana
Hey Ashwin, We, at Auto-Suggest, had the similar requirement. We wanted to boost suggestions as per their demand. For this, we also introduced a new *integer* field *demand*. We simply boosted it by (we use some mathematical transformations so showing the basic version here): *&boost=demand* We

Best field type for boosting all documents

2019-09-16 Thread Ashwin Ramesh
Hi everybody, We have a usecase where we want to push a popularity boost for each document in our collection. When a user searches for any term, we would like to arbitrarily add an additional boost by this value (which is different for each document). E.g. q=foo&boost=def(popularityBoostField,1)

Re: Boosting using Range

2019-05-31 Thread Erik Hatcher
Sachin - that’s a confusing name for a field that represents a price and not a “range”, but ok use the first one but with your field name: &bq=price_range:[10 TO 25] My bad below saying “boost” (takes a function, not a raw query). Use “bq”, which takes a regular query. Erik > On Ma

Re: Boosting using Range

2019-05-30 Thread sachin gk
Hi Erik, We have indexed it as a double and has individual value Eg Price_Range: 10. On Thu, 30 May 2019 at 23:34, Erik Hatcher wrote: > The simplest given your example, with edismax add &boost=price:[10 TO 25] > > Or you literally have a price_range field?&boost=price_range:10_25 > (assumi

Re: Boosting using Range

2019-05-30 Thread Erik Hatcher
The simplest given your example, with edismax add &boost=price:[10 TO 25] Or you literally have a price_range field?&boost=price_range:10_25 (assuming that's how you indexed it). What type of field is price_range? What did you index into it? Erik > On May 30, 2019, at 1:24 PM,

Boosting using Range

2019-05-30 Thread sachin gk
Hi All, I am trying to boost solr documents using the range attribute as mentioned below. price_range: 10 25 is it possible, if so how to form a query. -- Regards, Sachin

Re: "dismax" parameter "bq" filters instead of boosting

2019-04-17 Thread Alexandre Rafalovitch
will see the difference between your last two queries. The second last > > one will show 6 items and the last one still 5. > > > > As is, with your custom config, booster query is added as one more > > clause in the search. q.op=ALL forces it to be a compulsory clause, &g

Re: "dismax" parameter "bq" filters instead of boosting

2019-04-16 Thread Nicolas Franck
> will see the difference between your last two queries. The second last > one will show 6 items and the last one still 5. > > As is, with your custom config, booster query is added as one more > clause in the search. q.op=ALL forces it to be a compulsory clause, > rather th

Re: "dismax" parameter "bq" filters instead of boosting

2019-04-16 Thread Alexandre Rafalovitch
forces it to be a compulsory clause, rather than an optional (boosting one). FQ is always a forced compulsory clause. Maybe it accepts boosts, but all scores are ignored anyway (it is just 0 for fail and anything else for pass). Adding 'debug=all' into the query parameters (or defaults

Re: "dismax" parameter "bq" filters instead of boosting

2019-04-16 Thread Nicolas Franck
I agree, but I thought my thread was lost in the long list of issues. I prepared a simple case for solr 8.0: basic_dismax_set/config: schema.xml and solrconfig.xml basic_dismax_set/data: records_pp.json Total 6 records: http://localhost:8983/solr/test/select?echoParams=all 5

Re: "dismax" parameter "bq" filters instead of boosting

2019-04-16 Thread Alexandre Rafalovitch
r 2019 at 13:17, Nicolas Franck wrote: > > any update on this? > > > On 5 Mar 2019, at 09:06, Nicolas Franck wrote: > > > > I noticed a change in the behaviour of the regular "dismax" parser. > > At least in version 7.4: > > > > when you add &

Re: "dismax" parameter "bq" filters instead of boosting

2019-04-16 Thread Nicolas Franck
any update on this? > On 5 Mar 2019, at 09:06, Nicolas Franck wrote: > > I noticed a change in the behaviour of the regular "dismax" parser. > At least in version 7.4: > > when you add "bq", it filters the results (like "fq" does), instead of &

Fwd: Boosting Query Time Complexity

2019-03-18 Thread Krishna Raj
Hello Experts, My goal is to understand the time complexity of the Boosting Query as part of a search in Solr: sort=score+desc defType=edismax boost= I followed the stacktrace for the the search call and I am believe the time complexity is as follows: - Main Query time + multiple filters

Boosting Query Time Complexity

2019-03-18 Thread Krishna Raj
Hello Experts, My goal is to understand the time complexity of the Boosting Query as part of a search in Solr: sort=score+desc defType=edismax boost= I followed the stacktrace for the the search call and I am believe the time complexity is as follows: - Main Query time + multiple filters

"dismax" parameter "bq" filters instead of boosting

2019-03-05 Thread Nicolas Franck
I noticed a change in the behaviour of the regular "dismax" parser. At least in version 7.4: when you add "bq", it filters the results (like "fq" does), instead of boosting the matches. e.g. defType=dismax bq=format:periodical^30 gives only records with for

Re: difference in behavior of term boosting between Solr 6 and Solr 7

2019-01-23 Thread Elaine Cario
I predicted some colleague would come to me 2 minutes after I sent this with some finding - I was wrong, it was a few hours! It seems there was a change in a custom similarity class (I think because of an API change in Solr), which caused the query boost to not be applied. We're looking at this an

difference in behavior of term boosting between Solr 6 and Solr 7

2019-01-22 Thread Elaine Cario
We're preparing to upgrade from Solr 6.4.2 to Solr 7.6.0, and found an inconsistency in scoring. It appears that term boosts in the query are not applied in Solr 7. The query itself against both versions is identical (removed un-important params): ("one"^1) OR ("two"^2) OR ("three"^3) edismax max

Re: Boosting score based off a match in a particular field

2018-11-28 Thread Tanya Bompi
e, Email etc). I have an indexed all the fields and the > > combined copy field as well. > > In the query that i have which is a combination of all the fields as > input > > (Title + Description+Phone+email). > > There are some samples where if the Email/Phone has a matc

Re: Boosting score based off a match in a particular field

2018-11-28 Thread Doug Turnbull
t of this in Solr relevance training >> https://opensourceconnections.com/events/training/) >> >> Hope that helps >> -Doug >> >> >> On Wed, Nov 28, 2018 at 3:21 PM Tanya Bompi >> wrote: >> >> > Hi, >> > I have an index that is

Re: Boosting score based off a match in a particular field

2018-11-28 Thread Doug Turnbull
> In the query that i have which is a combination of all the fields as input > (Title + Description+Phone+email). > There are some samples where if the Email/Phone has a match the resulting > Solr score is lower still. I have tried boosting the fields say Email^2 but > that results in

Boosting score based off a match in a particular field

2018-11-28 Thread Tanya Bompi
some samples where if the Email/Phone has a match the resulting Solr score is lower still. I have tried boosting the fields say Email^2 but that results in any token in the input query being matched against the email which results in erroneous results. How can i formulate a query that I can boost for

Re: Question on query time boosting

2018-08-23 Thread Kydryavtsev Andrey
case1 would be: score_for_case1(doc, query) = 200 * + 400 * + 20 * + 40 * = 10 * (20 * + 40 * + 2 * + 4 * ) = 10 * score_for_case2(doc, query) Thank you, Andrey Kudryavtsev 23.08.2018, 18:53, "Pratik Patel" : > Hello All, > > I am trying to understand how exactly

Question on query time boosting

2018-08-23 Thread Pratik Patel
Hello All, I am trying to understand how exactly query time boosting works in solr. Primarily, I want to understand if absolute boost values matter or is it just the relative difference between various boost values which decides scoring. Let's take following two queries for example. // cas

RE: Multiple languages, boosting and, stemming and KeywordRepeat

2018-05-18 Thread Markus Jelsma
part again, i clearly missed it the last time. Thanks, Markus -Original message- > From:Alessandro Benedetti > Sent: Friday 18th May 2018 12:54 > To: solr-user@lucene.apache.org > Subject: Re: Multiple languages, boosting and, stemming and KeywordRepeat > > Hi Mark

Re: Multiple languages, boosting and, stemming and KeywordRepeat

2018-05-18 Thread Alessandro Benedetti
t find > anything in the Lucene or Solr Javadocs, or the reference manual. > > Many thanks, again, > Markus > > > > -Original message- > > From:Markus Jelsma > > Sent: Wednesday 9th May 2018 17:39 > > To: solr-user > > Subject: Multipl

RE: Multiple languages, boosting and, stemming and KeywordRepeat

2018-05-17 Thread Markus Jelsma
- > From:Markus Jelsma > Sent: Wednesday 9th May 2018 17:39 > To: solr-user > Subject: Multiple languages, boosting and, stemming and KeywordRepeat > > Hello, > > First, apologies for the weird subject line. > > We index many languages and search over al

Multiple languages, boosting and, stemming and KeywordRepeat

2018-05-09 Thread Markus Jelsma
very well. However, we just stumbled over the following example, q=australia is not stemmed in English, but its suffix is removed by the Romanian stemmer, causing the Romanian results to be returned on top of English results, despite language boosting. This is because the Romanian part of the

Re: Boosting on matching results

2018-04-20 Thread Erick Erickson
Function queries have things like termfrequencies, document frequencies and the like that might be helpful, see: https://lucene.apache.org/solr/guide/6_6/function-queries.html Best, Erick On Fri, Apr 20, 2018 at 3:58 AM, Ugo Matrangolo wrote: > Hi, > > is it possible to boost a document based on

Boosting on matching results

2018-04-20 Thread Ugo Matrangolo
Hi, is it possible to boost a document based on how many of the 'same kind' are in the current search result? An example: I'm looking at 'red dress' and this is the current situation on the facet counts: "facet_counts": { "facet_queries": {}, "facet_fields": { "sku_fashion":

RE: Boosting Fields Based On The Query Provided

2018-03-22 Thread Mukhopadhyay, Aratrika
this via the elevate.xml or is there a better approach for instance boosting fields ? When I am boosting fields in this fashion it is not working for me : edismax url^50 host^30 content^20 title^10 elevator Thanks for your help . Aratrika Mukhopadhyay

Re: Boosting Fields Based On The Query Provided

2018-03-20 Thread Shawn Heisey
On 3/20/2018 2:25 PM, Mukhopadhyay, Aratrika wrote: > I have a solr query which I am having a hard time configuring as I would > want it configured. Suppose I have a situation where I have two fields > field1(host field) and field2 (url field). I want a specific host to be > bubbled to the

Boosting Fields Based On The Query Provided

2018-03-20 Thread Mukhopadhyay, Aratrika
All , I have a solr query which I am having a hard time configuring as I would want it configured. Suppose I have a situation where I have two fields field1(host field) and field2 (url field). I want a specific host to be bubbled to the top for all terms except for when I am searching for s

Re: Boosting with 0 factor

2018-03-14 Thread Emir Arnautović
Detection Solr & Elasticsearch Consulting Support Training - http://sematext.com/ > On 13 Mar 2018, at 17:28, Dariusz Wojtas wrote: > > Hi, > > I have a question about boosting queries with ^0 > > I am using LTR. In the 1st step I want to narrow the query, but limit >

Boosting with 0 factor

2018-03-13 Thread Dariusz Wojtas
Hi, I have a question about boosting queries with ^0 I am using LTR. In the 1st step I want to narrow the query, but limit 'noise' results as much as possible. The 1st step is defined as follows: {!edismax qf='keyword_id^10 keyword_nonid^2 keyword_lastNames^2 key

Regarding solr 5.3.1 boosting issue

2018-02-21 Thread sha p
tried to add the boosters in desc order of those child docs , i that first child document would get bigger booster number than following documents .. Unfortunately solr rest api is not respecting this boosting, the score of each document is not in sync with the boosting value. Please help me what

Re: Index time boosting

2017-11-14 Thread Erick Erickson
Do not use index time boosting, please. When something is deprecated, the usual process is that that functionality is supported for one major version after deprecation, then the devs are free to remove it. Index time boosting is not supported in 7.0 even though it is in 6x, from CHANGES.txt, the

Re: Index time boosting

2017-11-14 Thread Venkateswarlu Bommineni
Tue, Nov 14, 2017 at 5:32 PM, Amrit Sarkar wrote: > Hi Venkat, > > FYI: Index time boosting has been deprecated from latest versions of Solr: > https://issues.apache.org/jira/browse/LUCENE-6819. > > Not sure which version you are on, but best consider the comments on the >

Re: Index time boosting

2017-11-14 Thread Amrit Sarkar
Hi Venkat, FYI: Index time boosting has been deprecated from latest versions of Solr: https://issues.apache.org/jira/browse/LUCENE-6819. Not sure which version you are on, but best consider the comments on the JIRA before using it. Amrit Sarkar Search Engineer Lucidworks, Inc. 415-589-9269

Index time boosting

2017-11-14 Thread Venkateswarlu Bommineni
Hello Guys, I would like to understand how index time boosting works in Solr. and how it is relates to ommitNorms property in schema.xml. and i am trying to understand how it works internally , if you have any documentation please provide. Thanks, Venkat.

Re: Query Boosting and sort

2017-10-24 Thread Renuka Srishti
fferent docs? > What information is the user getting when they compare columnA and > columnB in the same row? What information is the user getting when > they compare columnA from row1 and row2? > > bq: "There is one keyword search box, in which I have applied the > phrase b

Re: Solr boosting multiple fields using edismax parser.

2017-10-23 Thread ruby
Thanks for your reply. can the recip function be used to boost a numeric field here: recip(ord(rating),100,1,1) -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Solr boosting multiple fields using edismax parser.

2017-10-23 Thread Aravind Durvasula
You can pass additional bq params in the query. ~Aravind On Oct 23, 2017 4:10 PM, "ruby" wrote: > If I want to boost multiple fields using Edismax query parser, is following > the correct way of doing it: > > > > edismax > field1:(apple)^500 > field1:(orange)^400 > field1:(pear)^300 > field2:

Solr boosting multiple fields using edismax parser.

2017-10-23 Thread ruby
If I want to boost multiple fields using Edismax query parser, is following the correct way of doing it: edismax field1:(apple)^500 field1:(orange)^400 field1:(pear)^300 field2:(4)^500 field2:(2)^100 recip(ms(NOW,mod_date),3.16e-11,1,1) recip(ms(NOW,creation_date),3.16e-11,1,1) And

Solr boosting multiple fields using edismax parser.

2017-10-23 Thread ruby
If I want to boost multiple fields using Edismax query parser, is following the correct way of doing it: edismax field1:(apple)^500 field1:(orange)^400 field1:(pear)^300 field2:(4)^500 field2:(2)^100 recip(ms(NOW,mod_date),3.16e-11,1,1) recip(ms(NOW,creation_date),3.16e-11,1,1) And

Re: Solr boost function taking precedence over relevance boosting

2017-10-05 Thread alessandro.benedetti
I would try to use an additive boost and the ^= boost operator: - name_property :( test^=2 ) will assign a fixed score of 2 if the match happens ( it is a constant score query) - additive boost will be 0http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Solr boost function taking precedence over relevance boosting

2017-10-04 Thread ruby
I have a usecase where: if a document has the search string in it's name_property field, then I want to show that document on top. If multiple document has the search string in it's name_property field then I want to sort them by creation date. Following is my query: q={!boost+b=recip(ms(NOW,crea

Re: Query Boosting and sort

2017-09-09 Thread Erick Erickson
doc? Different docs? What information is the user getting when they compare columnA and columnB in the same row? What information is the user getting when they compare columnA from row1 and row2? bq: "There is one keyword search box, in which I have applied the phrase boosting to maint

Re: Query Boosting and sort

2017-09-08 Thread Renuka Srishti
Thanks Rick and Erick for your response. Here is the situation where I want to use both sort and phrase boosting: - I have designed a screen where results are showing in tabular form, in each column I have applied sorting( using Solr sort parameter). There is one keyword search box, in

Re: Query Boosting and sort

2017-09-08 Thread Erick Erickson
ut your issue. What query? config? > > cheers -- Rick > > > > On 2017-09-08 05:42 AM, Renuka Srishti wrote: >> >> Hello All, >> >> I am trying to use sort parameter and phrase boosting together in search. >> But, if I use the sort parameter, it seems li

Re: Query Boosting and sort

2017-09-08 Thread Rick Leir
Renuka, You have not told us nearly enough about your issue. What query? config? cheers -- Rick On 2017-09-08 05:42 AM, Renuka Srishti wrote: Hello All, I am trying to use sort parameter and phrase boosting together in search. But, if I use the sort parameter, it seems like Phrase Boosting

Query Boosting and sort

2017-09-08 Thread Renuka Srishti
Hello All, I am trying to use sort parameter and phrase boosting together in search. But, if I use the sort parameter, it seems like Phrase Boosting does not work with it. Thanks Renuka Srishti

Re: Phrase boosting on multiple fields

2017-09-06 Thread ANNAMANENI RAVEENDRA
Just pass qf=field1,field2,field3&pf=field1,firld2,field3 Like that you can add as many field as you want On Wed, 6 Sep 2017 at 2:41 AM, ritesh kumar wrote: > I have a situation where I have to apply phrase boosting on multiple > fields. I am using Edismax as query parser. > Fo

Phrase boosting on multiple fields

2017-09-05 Thread ritesh kumar
I have a situation where I have to apply phrase boosting on multiple fields. I am using Edismax as query parser. For instance, I am accepting a keyword (phrase) from the user and I want the doc with the exact phrase to be on the top of the resultant list. The problem is, there are multiple

Re: Boosting Documents using the field Value

2017-06-27 Thread govind nitk
Hi Erick, Finally Made it work. bf=if(exists(query($qqone)),one_score,0)&qqone=one_query:\"google cloud\" Thanks a lot for guiding, also reminding its not url escape. No analyzers used. Regards, Govind On Tue, Jun 27, 2017 at 11:01 AM, govind nitk wrote: > Hi Erick, > I accept, I should

Re: Boosting Documents using the field Value

2017-06-26 Thread govind nitk
Hi Erick, I accept, I should have mentioned the what I was doing first. field types: one_query is "string", one_score is float. So No explicit analyzers. mentioned sow=false. and escaping as you mentioned. But still the error persist. - undefined field "cloud" Will get back. Regards, Givind O

Re: Boosting Documents using the field Value

2017-06-26 Thread Erick Erickson
bq: So, ultimate goal is when the exact query matches in field one_query, apply boost of one_score It would have been helpful to have made that statement in the first place, would have saved some false paths. What is your analysis chain here? If it's anything like "text_general" or the like then

Re: Boosting Documents using the field Value

2017-06-26 Thread govind nitk
Hi Developers, Erick I am able to add boost through function as below: bf=if(termfreq(one_query,"google"),one_score,0) Problem is when I say "google cloud" as query, it gives error: undefined field: \"cloud\"" I tried encoding the query(%20, + for space), but not able to get it working. So, ult

Re: Boosting Documents using the field Value

2017-06-25 Thread govind nitk
Hi Erick, Exactly this is what I was looking for. Thanks a lot. Regards, Govind On Mon, Jun 26, 2017 at 12:03 AM, Erick Erickson wrote: > Take a look at function queries. You're probably looking for "field", > "termfreq" and "if" functions or some other combination like that. > > On Sun, Jun

Re: Boosting Documents using the field Value

2017-06-25 Thread Erick Erickson
Take a look at function queries. You're probably looking for "field", "termfreq" and "if" functions or some other combination like that. On Sun, Jun 25, 2017 at 9:01 AM, govind nitk wrote: > Hi Erik, Thanks for the reply. > > My intention of using the domain_ct in the qf was, giving the weight >

Re: Boosting Documents using the field Value

2017-06-25 Thread govind nitk
Hi Erik, Thanks for the reply. My intention of using the domain_ct in the qf was, giving the weight present in the that document. e.g qf=category^domain_ct if the current query matched in the category, the boost given will be domain_ct, which is present in the current matched document. So if I

Re: Boosting Documents using the field Value

2017-06-24 Thread Erik Hatcher
With dismax use bf=domain_ct. you can also use boost=domain_ct with edismax. > On Jun 23, 2017, at 23:01, govind nitk wrote: > > Hi Solr, > > My Index Data: > > id name category domain domain_ct > 1 Banana Fruits Home > Fruits > Banana 2 > 2 Orange Fruits Home > Fruits > Orange 4 > 3 Samsung

Boosting Documents using the field Value

2017-06-23 Thread govind nitk
Hi Solr, My Index Data: id name category domain domain_ct 1 Banana Fruits Home > Fruits > Banana 2 2 Orange Fruits Home > Fruits > Orange 4 3 Samsung Mobile Electronics > Mobile > Samsung 3 I am able to retrieve the documents with dismax parser with the weights mentioned as below. http://local

solr 5.5.2 bug in edismax pf2 when boosting term

2017-05-18 Thread elisabeth benoit
Hello, I am using solr 5.5.2. I am trying to give a lower score to frequent words in query. The only way I've found so far is to do like q=avenue^0.1 de champaubert village suisse 75015 paris where avenue is a frequent word. The problem is I'm using edismax, and when I add ^0.1 to avenue, it

Re: Trouble boosting a field -solved-

2017-01-18 Thread Erick Erickson
bq: Which might be the same as saying nothing matched Right, a score of zero for a doc means it didn't match the query. It can be useful to specify &debug.explainOther can show the scoring for an arbitrary doc, even one with a zero score. https://cwiki.apache.org/confluence/display/solr/Common+Q

Re: Trouble boosting a field -solved-

2017-01-18 Thread Tom Chiverton
I 'solved' this by removing some of the 'AND' from my full query. AND should be optional but have no effect if there, right ? But for me it was forcing the score to 0. Which might be the same as saying nothing matched ? Tom On 13/01/17 15:10, Tom Chiverton wrote: I have a few hundred docu

Re: Trouble boosting a field

2017-01-16 Thread Alan Woodward
Just accessible from your browser, so if you have a machine that’s inside your firewall but can see the outside world then it will work. Alan Woodward www.flax.co.uk > On 16 Jan 2017, at 09:47, Tom Chiverton wrote: > > Ohh, that's handy ! But it needs Solr/ElasticSearch to be publicly accessi

Re: Trouble boosting a field

2017-01-16 Thread Tom Chiverton
Ohh, that's handy ! But it needs Solr/ElasticSearch to be publicly accessible ? On 14/01/17 09:23, Alan Woodward wrote: http://splainer.io/ from the gents at OpenSourceConnections is pretty good for this sort of thing, I find… Alan Woodward www.flax.co.uk On 13 Jan 2

Re: Trouble boosting a field

2017-01-14 Thread Alan Woodward
http://splainer.io/ from the gents at OpenSourceConnections is pretty good for this sort of thing, I find… Alan Woodward www.flax.co.uk > On 13 Jan 2017, at 16:35, Tom Chiverton wrote: > > Well, I've tried much larger values than 8, and it still doesn't seem to do > the

Re: Trouble boosting a field

2017-01-13 Thread Tom Chiverton
Well, I've tried much larger values than 8, and it still doesn't seem to do the job ? For now, assume my users are searching for exact sub strings of a real title. Tom On 13/01/17 16:22, Walter Underwood wrote: I use a boost of 8 for title with no boost on the content. Both Infoseek and I

Re: Trouble boosting a field

2017-01-13 Thread Walter Underwood
I use a boost of 8 for title with no boost on the content. Both Infoseek and Inktomi settled on the 8X boost, getting there with completely different methodologies. You might not want the title to completely trump the content. That causes some odd anomalies. If someone searches for “ice age 2”,

Re: Trouble boosting a field

2017-01-13 Thread Erick Erickson
Tom: The output is numbing, but add &debug=true to your query and you'll see exactly what contributed to the score and why. Otherwise you're flying blind. Obviously something's trumping your boosting, but you can't pin down what without the numbers. You can get an

Trouble boosting a field

2017-01-13 Thread Tom Chiverton
I have a few hundred documents with title and content fields. I want a match in title to trump matches in content. If I search for "connected vehicle" then a news article that has that in the content shouldn't be ranked higher than the page with that in the title is essentially what I want.

Solr boost function taking precedence over relevance boosting

2016-11-08 Thread ruby
ange in the Solr date boost functions? If not, then is there something wrong with my query? Is my understanding of date boost function with relevancy boosting current? Thanks, Ruby -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-boost-function-taking-precedence-over-relev

Re: Help for -- Filter in the text field + highlight + no affect on boosting(if done with q instead of fq)

2016-08-10 Thread Emir Arnautovic
Management Solr & Elasticsearch Support * http://sematext.com/ On 09.08.2016 19:10, Raleraskar, Mayur wrote: Hi All, I am using Solr for search functionality here @ eBay reviews team. I need to implement search functionality with q parameter but do not want it, to affect boosting or relev

Help for -- Filter in the text field + highlight + no affect on boosting(if done with q instead of fq)

2016-08-09 Thread Raleraskar, Mayur
Hi All, I am using Solr for search functionality here @ eBay reviews team. I need to implement search functionality with q parameter but do not want it, to affect boosting or relevancy. How can I achieve that? Effectively I want it perform just like a filter. My query is like SolrIp:Port/select

  1   2   3   4   5   6   7   8   9   10   >