Re: Boosting only top n results that match a criteria

2019-12-28 Thread Emir Arnautović
You could try and see if field collapsing can help you. That could let you return top 5 from each class if that is acceptable. Otherwise, you’ll have to go with two queries. HTH, Emir -- Monitoring - Log Management - Alerting - Anomaly Detection Solr & Elasticsearch Consulting Support Training -

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 query and re-scor

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 top 5: > > ….&fq

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

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,

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

2018-11-28 Thread Tanya Bompi
Hi Doug, Thank you for your response. I tried the above boost syntax but I get the following error of going into an infinite loop. In the wiki page I couldnt figure out what the 'v' parameter is. ( https://lucene.apache.org/solr/guide/7_0/the-extended-dismax-query-parser.html). I will try the ana

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

2018-11-28 Thread Doug Turnbull
Ah yes, this is a common gotcha, its because the bq is recursively applied to itself So you have to change that bq to have itself a bq that's empty bq={!edismax bq='' mm=80% qf=Email^100 v=$q} v is simply the 'q' for this subquery, by passing v=$q you explicitly set it to whatever was passed in

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

2018-11-28 Thread Doug Turnbull
The terminology we use at my company is you want to *gate* the effect of boost to only very precise scenarios. A lot of this depends on how your Email and Phone numbers are being tokenized/analyzed (ie what analyzer is on the field type), because you really only want to boost when you have high con

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

RE: Boosting Fields Based On The Query Provided

2018-03-22 Thread Mukhopadhyay, Aratrika
-Original Message- From: Shawn Heisey [mailto:apa...@elyograg.org] Sent: Tuesday, March 20, 2018 6:03 PM To: solr-user@lucene.apache.org Subject: Re: Boosting Fields Based On The Query Provided On 3/20/2018 2:25 PM, Mukhopadhyay, Aratrika wrote: > I have a solr query which I

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

Re: Boosting with 0 factor

2018-03-14 Thread Emir Arnautović
Hi Dariusz, It will match but it will not affect the score. If you have a single field boosted with 0, score will be 0. You can use debugQuery=true to see how query is parsed and see that there is a component even boost is 0. HTH, Emir -- Monitoring - Log Management - Alerting - Anomaly Detectio

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

Re: Boosting query results

2016-07-07 Thread Walter Underwood
I think it works to join against the other collection to get scores. But I’m not sure. I think that was suggested for a fairly static collection of documents with rapidly changing scoring inputs. Personally, I would try a straight popularity boost to see if it got you 80% of the way there. wun

Re: Boosting query results

2016-07-07 Thread Mark T. Trembley
Yes, the spam issue is something I'm aware of. I plan on having some sanity checks in place to make sure that the boosts are in line with expectations either at query time or while indexing the scores into Solr. I just read through that document along with some of the more recent posts about s

Re: Boosting query results

2016-07-07 Thread Walter Underwood
If it is running in an environment protected from spammers, you might want to start with the work that LucidWorks did on click scoring. https://lucidworks.com/blog/2015/03/23/mixed-signals-using-lucidworks-fusions-signals-api/

Re: Boosting query results

2016-07-07 Thread Walter Underwood
You understand that you are making your site extremely easy to spam, right? This is how Microsoft became the top hit for “evil empire” on Google. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Jul 7, 2016, at 11:25 AM, Mark T. Trembley > wrote: >

Re: Boosting query results

2016-07-07 Thread Mark T. Trembley
I've found that it is definitely complicated! Essentially what I am attempting to do is boost products based on the number of times that particular product has been selected via historical searches using the same search term or phrase. On 7/7/2016 11:55 AM, Walter Underwood wrote: That is a

Re: Boosting query results

2016-07-07 Thread Walter Underwood
That is a very complicated design. What are you trying to achieve? Maybe there is a different approach that is simpler. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Jul 7, 2016, at 9:26 AM, Mark T. Trembley > wrote: > > That works with static

Re: Boosting query results

2016-07-07 Thread Mark T. Trembley
That works with static boosts based on documents matching the query "Boost2". I want to apply a different boost to documents based on the value assigned to Boost2 within the document. From my sample documents, when running a query with "Boost2," I want Document2 boosted by 20.0 and Document6 b

Re: Boosting query results

2016-07-07 Thread Walter Underwood
This looks like a job for “bq”, the boost query parameter. I used this to boost textbooks which were used at the student’s school. bq does not force documents to be included in the result set. It does affect the ranking of the included documents. bq=B1_ss:Boost2 will boost documents that match

Re: Boosting exact match fields.

2016-06-16 Thread elisabeth benoit
In addition to what was proposed We use the technic described here https://github.com/cominvent/exactmatch and it works quite well. Best regards Elisabeth 2016-06-15 16:32 GMT+02:00 Alessandro Benedetti : > In addition to what Erick correctly proposed, > are you storing norms for your field o

Re: Boosting exact match fields.

2016-06-15 Thread Alessandro Benedetti
In addition to what Erick correctly proposed, are you storing norms for your field of interest ( to boost documents with shorter field values )? If you are, I find suspicious "Sony Ear Phones" to win over "Ear Phones" for your "Ear Phones" query. What are the other factors currently involved in you

Re: Boosting exact match fields.

2016-06-14 Thread Erick Erickson
If these are the complete field, i.e. your document contains exactly "ear phones" and not "ear phones are great" use a copyField to put it into an "exact_match" field that uses a much simpler analysis chain based on KeywordTokenizer (plus, perhaps things like lowercaseFilter, maybe strip punctuatio

Antw: Re: Boosting of Join Results

2016-03-22 Thread Alena Dengler
Mikhail, Thanks a lot for the suggestion. We now implemented the query as follows: q=(+geschichte +rom) OR _query_:{!boost b=0.01}{!join from=expandtype fromIndex=pages to=id score=avg v='pageno_content:(+geschichte +rom)'}) With the factor of 0.01 it seems to work well with our data. Best Re

Re: Boosting of Join Results

2016-03-22 Thread Mikhail Khludnev
what is you nest join into boost eg q=+foo {!boost ..}{!join ... v=...} see https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-BoostQueryParser if it works, you may vote for https://issues.apache.org/jira/browse/SOLR-7814 On Tue, Mar 22, 2016 at 12:39 PM, Alena Dengler <

Re: Boosting a document score when advertised! Please help!

2015-11-05 Thread Walter Underwood
The elevation component will be a ton of manual work. Instead, use edismax and the boost parameter. Add a field that is true for paid documents, then boost for paid:true. It might be easier to use a boost query (bq) to do this. The extra boost will be a tiebreaker for documents that would have

Re: Boosting a document score when advertised! Please help!

2015-11-05 Thread Doug Turnbull
Funny I'm editing a chapter about boosting for a book :) http://manning.com/turnbull Anyway, I've been told by others that this blog post I wrote was really useful in teaching them how to carefully boost documents. Maybe it would help you? http://opensourceconnections.com/blog/2013/07/21/improve-s

Re: Boosting a document score when advertised! Please help!

2015-11-05 Thread Paul Libbrecht
Alessandro, none of them seem to match what I'd expect be done: given an extra param that indicates the author, for each query, add an extra boosting. Christian, I used to do that with a query component (in java) but I think that nowadays you can do that with the bq parameter of edismax. paul

Re: Boosting a document score when advertised! Please help!

2015-11-05 Thread Alessandro Benedetti
Hi Christian, there are several ways : 1) Elevation query component - it should be your winner : https://cwiki.apache.org/confluence/display/solr/The+Query+Elevation+Component 2) Play with boosting according to your requirements Cheers On 5 November 2015 at 10:52, wrote: > Hi everyone,I'm bui

Re: Boosting related doubt?

2015-09-10 Thread Shawn Heisey
On 9/9/2015 11:16 PM, Aman Tandon wrote: > I need to ask that when i am looking for the all the parameters of the > query using the *echoParams=ALL*, I am getting the boost parameter twice in > the information printed on the browser screen. If you see a parameter twice in the "echoParams=all" outp

Re: Boosting related doubt?

2015-09-10 Thread Upayavira
That's curious. Have a look at both the parsed query, and the explains output for a very simple (even *:*) query. You should see the boost present there and be able to see whether it is applied once or twice. Upayavira On Thu, Sep 10, 2015, at 06:16 AM, Aman Tandon wrote: > Hi, > > I need to ask

Re: Boosting by calculated distance buckets

2015-02-18 Thread sraav
David, I just subscriped to the solr list..lets see if that will allow me to posting this. I will write a Custom ValueSource. I tried the map function that you suggested, it works but it is not so great on performance. I will try referring funtion query as a sort instead of bq..may be it wil

Re: Boosting by calculated distance buckets

2015-02-17 Thread David Smiley
Raav, You may need to actually subscribe to the solr-user list. Nabble seems to not be working to well. p.s. I’m on vacation this week so I can’t be very responsive First of all... it's not clear you actually want to *boost* (since you seem to not care about the relevancy score), it seems you wa

Re: Boosting by calculated distance buckets

2015-02-14 Thread David Smiley
Hello, You can totally boost by calculations that happen on-the-fly on a per-document basis when you search. These are called function queries in Solr. Your your specific example… a solution that doesn’t involve writing a custom so-called ValueSource in Java would likely mean calculating the dist

Re: boosting by geodist - GC Overhead Limit exceeded

2015-01-21 Thread Chris Hostetter
On Wed, 21 Jan 2015, Mihran Shahinian wrote: : Date: Wed, 21 Jan 2015 16:06:18 -0600 : From: Mihran Shahinian : Reply-To: solr-user@lucene.apache.org : To: solr-user@lucene.apache.org : Subject: boosting by geodist - GC Overhead Limit exceeded : : I am running solr 4.10.2 with geofilt (~20% of d

Re: Boosting the score using edismax for a non empty and non indexed field.

2014-12-10 Thread Meraj A. Khan
Thanks Erik, I followed this approach. On Tue, Dec 9, 2014 at 4:21 AM, Erik Hatcher wrote: > Boosting will need to be done off an indexed field. But maybe rather than > indexing the url value, maybe index another new hasImage field as a boolean > true. No need to index the false values even.

Re: Boosting the score using edismax for a non empty and non indexed field.

2014-12-09 Thread Erik Hatcher
Boosting will need to be done off an indexed field. But maybe rather than indexing the url value, maybe index another new hasImage field as a boolean true. No need to index the false values even. Erik > On Dec 8, 2014, at 02:45, S.L wrote: > > Hi All, > > I have a situation where I

Re: Boosting the score using edismax for a non empty and non indexed field.

2014-12-08 Thread S.L
Anyone ? On Mon, Dec 8, 2014 at 2:45 AM, S.L wrote: > Hi All, > > I have a situation where I need to boost the score of a query if a field > (imageURL) in the given document is non empty , I am using edismax so I > know that using bq parameter would solve the problem. However the field > imageUR

Re: Boosting mixed fiedl types

2014-11-17 Thread eakarsu
Ahmet, Thanks boost parameter is determining boost value for whole query. But I am assigning boost for other individual fields. I worry whether or not boost parameter and invidiual boosts with bf and pdf will rank results properly. Erol Akarsu -- View this message in context: http://lucene.

Re: Boosting mixed fiedl types

2014-11-17 Thread Ahmet Arslan
Hi, Edismax has the boost parameter for example. It is multiplicative boost. boost=log(NumberOfClicks) https://cwiki.apache.org/confluence/display/solr/The+Extended+DisMax+Query+Parser Ahmet On Monday, November 17, 2014 3:38 PM, eakarsu wrote: I have several field types and like to assign

Re: Boosting on field-not-empty

2014-10-30 Thread Erick Erickson
bq: ...while the fields are not part of the search query I'm really confused. The presence or absence of fields that aren't part of the search should be totally irrelevant to scoring. Are you perhaps sorting by a different field? It'd help if you showed us the query you're sending, a sample of th

Re: Boosting on field-not-empty

2014-10-30 Thread Håvard Wahl Kongsgård
Thanks :) On Thu, Oct 30, 2014 at 7:49 PM, Ramzi Alqrainy wrote: > You can use FunctionQuery that allows one to use the actual value of a > field > and functions of those fields in a relevancy score. > > Two function will help you, which are : > > *exists* > > exists(field|function) returns true

Re: Boosting on field-not-empty

2014-10-30 Thread Ramzi Alqrainy
You can use FunctionQuery that allows one to use the actual value of a field and functions of those fields in a relevancy score. Two function will help you, which are : *exists* exists(field|function) returns true if a value exists for a given document. Example use: exists(myField) will return

RE: Boosting Top selling items

2014-10-03 Thread EXTERNAL Taminidi Ravi (ETI, Automotive-Service-Solutions)
n fir= st otherwise do nothing and show as it is which is nothing but parts.=20 I don't think that search text can determine is it product or part.. -Original Message- From: Bob Laferriere [mailto:spongeb...@icloud.com] Sent: Friday, October 03, 2014 11:44 AM To: solr-user@luce

Re: Boosting Top selling items

2014-10-03 Thread Bob Laferriere
Thanks Ravi. Do you tag the product as TOP as a binary flag? My marketing team wants to use the number of orders but that screws up the relevance horribly. My thought is to tag a product with a product attribute (as you suggest) and tag it as TOP selling. Then I have pure relevance, but can give

RE: Boosting Top selling items

2014-10-03 Thread EXTERNAL Taminidi Ravi (ETI, Automotive-Service-Solutions)
Hi Bob, I tried using a product type attribute which separates the products/parts and boost the product in TOP with OR condition for productype as parts. This way you get all the products /parts related to your search and always keeping the Products in the Top and Parts next to Products. This i

Re: boosting words from specific list

2014-09-30 Thread Ahmet Arslan
Hi Ali, May be you can leverage Ahmet On Sunday, September 28, 2014 10:25 PM, Ali Nazemian wrote: Dear all, Hi, I was wondering how can I implement solr boosting words from specific list of important words? I mean I want to have a list of important words and tell solr to score documents ba

Re: boosting words from specific list

2014-09-30 Thread Manuel Le Normand
I have not tried it but I would check the option of using the synonymFilter to duplicate certain query words . Anothe opt - you can detect these word at index time (eg. UpdateProcessor) to give these documents a document boost in case it fits your logic. Or even make a copy field that contains a wh

Re: boosting words from specific list

2014-09-30 Thread Ali Nazemian
Dear Koji, Also would you please tell me how can I access the term frequency for each word? Should I do a word count on content or Is it possible to have access to reverse index information to make the process more efficient? I dont want to add too much time to the time of indexing documents. On T

Re: boosting words from specific list

2014-09-30 Thread Ali Nazemian
Dear Koji, Hi, Thank you very much. Do you know any example code for UpdateRequestProcessor? Anything would be appreciated. Best regards. On Tue, Sep 30, 2014 at 3:41 AM, Koji Sekiguchi wrote: > Hi Ali, > > I don't think Solr has such function OOTB. One way I can think of is that > you can imple

Re: boosting words from specific list

2014-09-29 Thread Koji Sekiguchi
Hi Ali, I don't think Solr has such function OOTB. One way I can think of is that you can implement UpdateRequestProcessor. In processAdd() method of the UpdateRequestProcessor, as you can read field values, you can calculate the total score and copy the total score to a field e.g. total_score. T

Re: boosting multivalued fields

2014-05-21 Thread Jack Krupansky
Yes. -- Jack Krupansky -Original Message- From: vit Sent: Wednesday, May 21, 2014 11:20 AM To: solr-user@lucene.apache.org Subject: boosting multivalued fields is it posiible to boost values of the same field. For example in a query like that: category_id:(2271578^0.5 22718986^0.4 4

Re: Boosting vs. sorting

2014-04-09 Thread Ugo Matrangolo
Hi, What I meant for "not working properly" is that while the partition still works the sorting inside the partitions (by position in the sale) is not. Interesting enough it stopped to work only for all the items belonging to the sold out items. Ugo On Apr 9, 2014 6:07 PM, "Erick Erickson" wrote

Re: Boosting vs. sorting

2014-04-09 Thread Erick Erickson
What does "not working properly" mean? An example would help. What does adding &debug=query show in the two (debug=all in 3.x)? My suspicion is that the second boost definition may be replacing the first in 4.x, but that's only a guess. Best, Erick On Wed, Apr 9, 2014 at 9:32 AM, Ugo Matrangolo

Re: Boosting documents by categorical preferences

2014-01-30 Thread Amit Nithian
Chris, Sounds good! Thanks for the tips.. I'll be glad to submit my talk to this as I have a writeup pretty much ready to go. Cheers Amit On Tue, Jan 28, 2014 at 11:24 AM, Chris Hostetter wrote: > > : The initial results seem to be kinda promising... of course there are > many > : more optimiz

Re: Boosting documents by categorical preferences

2014-01-28 Thread Chris Hostetter
: The initial results seem to be kinda promising... of course there are many : more optimizations I could do like decay user ratings over time to indicate : that preferences decay over time so a 5 rating a year ago doesn't count as : much as a 5 rating today. : : Hope this helps others. I'll open

Re: Boosting documents by categorical preferences

2014-01-27 Thread Amit Nithian
Hi Chris (and others interested in this), Sorry for dropping off.. I got sidetracked with other work and came back to this and finally got a V1 of this implemented. The final process is as follows: 1) Pre-compute the global categorical num_ratings/average/std-dev (so for Action the average rating

Re: Boosting results on value of field different from query

2013-12-29 Thread manju16832003
Hi Puneet, http://localhost:8983/solr/my/select?q=type:sedan^100 type:compact^10 (:*)^1&wt=json&indent=true&fl=,score&debug=results&bf=recip(rord(publish_date),1,2,3)^1.5&sort=score > desc Not really. The query I mentioned it does not restrict the other types, instead it would push other type

Re: Boosting results on value of field different from query

2013-12-26 Thread Kydryavtsev Andrey
Hi, Puneet I think you can try of provided advice from there : http://wiki.apache.org/solr/SolrRelevancyFAQ Like this one : http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_increase_the_score_for_specific_documents : set index time boos "per document", so set big boos for documents wit

Re: Boosting results on value of field different from query

2013-12-25 Thread Puneet Pawaia
Hi Manju Would this query not be searching for and thus restricting results to type sedan and compact? I would like the results to include other types but only show up lower down the list. Regards Puneet On 26 Dec 2013 07:15, "manju16832003" wrote: > Hi Puneet, > if you type field is pre-determin

Re: Boosting results on value of field different from query

2013-12-25 Thread manju16832003
Hi Puneet, if you type field is pre-determined text field ex type [compact, sedan, hatchback], I think you have to boost with query type field (q) to get more accurate boosting. Ex: http://localhost:8983/solr/my/select?q=type:sedan^100 type:compact^10 (:*)^1&wt=json&indent=true&fl=,score&debug=re

Re: Boosting documents by categorical preferences

2013-11-22 Thread Chris Hostetter
: I thought about that but my concern/question was how. If I used the pow : function then I'm still boosting the bad categories by a small : amount..alternatively I could multiply by a negative number but does that : work as expected? I'm not sure i understand your concern: negative powers would

Re: Boosting documents by categorical preferences

2013-11-20 Thread Amit Nithian
I thought about that but my concern/question was how. If I used the pow function then I'm still boosting the bad categories by a small amount..alternatively I could multiply by a negative number but does that work as expected? I haven't done much with negative boosting except for the sledgehammer

Re: Boosting documents by categorical preferences

2013-11-19 Thread Chris Hostetter
: My approach was something like: : 1) Look at the categories that the user has preferred and compute the : z-score : 2) Pick the top 3 among those : 3) Use those to boost search results. I think that totaly makes sense ... the additional bit i was suggesting that you consider is that instead of

Re: Boosting documents by categorical preferences

2013-11-18 Thread Amit Nithian
Hey Chris, Sorry for the delay and thanks for your response. This was inspired by your talk on boosting and biasing that you presented way back when at a meetup. I'm glad that my general approach seems to make sense. My approach was something like: 1) Look at the categories that the user has pref

Re: Boosting documents by categorical preferences

2013-11-14 Thread Chris Hostetter
: I have a question around boosting. I wanted to use the &boost= to write a : nested query that will boost a document based on categorical preferences. You have no idea how stoked I am to see you working on this in a real world application. : Currently I have the weights set to the z-score equi

Re: Boosting a field with defType:dismax --> No results at all

2013-10-16 Thread Jack Krupansky
Get rid of the newlines before and after the value of the qf parameter. -- Jack Krupansky -Original Message- From: uwe72 Sent: Wednesday, October 16, 2013 5:36 AM To: solr-user@lucene.apache.org Subject: Boosting a field with defType:dismax --> No results at all Hi there, i want to b

Re: Boosting in function queries?

2013-08-06 Thread Upayavira
Try: _query_:"{!dismax qf=Fname^8.0 v=$f_name}" OR _query_:"{!dismax qf=Lname^8.0 v=$l_name}" If you are using one of the later 4.x releases, you might find you can do away with the _query_: {!dismax qf=Fname^8.0 v=$f_name} OR {!dismax qf=Lname^8.0 v=$l_name} I haven't tried any of this

Re: Boosting based on value of field

2013-06-09 Thread Otis Gospodnetic
Index time boosting should be a bit faster, but not as flexible. Probably better to go for query time boosting first. Otis Solr & ElasticSearch Support http://sematext.com/ On Jun 9, 2013 5:46 AM, "Spadez" wrote: > Hi, > > By the looks of it I have a few options with regards to boosting. I was >

Re: Boosting Documents

2013-05-23 Thread Oussama Jilal
Oh thank you Chris, this is much clearer, and thank you for updating the Wiki too. On 05/22/2013 08:29 PM, Chris Hostetter wrote: : NOTE: make sure norms are enabled (omitNorms="false" in the schema.xml) for : any fields where the index-time boost should be stored. : : In my case where I only n

Re: Boosting Documents

2013-05-22 Thread Chris Hostetter
: NOTE: make sure norms are enabled (omitNorms="false" in the schema.xml) for : any fields where the index-time boost should be stored. : : In my case where I only need to boost the whole document (not a specific : field), do I have to activate the << omitNorms="false" >> for all the fields : in

Re: Boosting Documents

2013-05-22 Thread Oussama Jilal
Ok thank you for your help, I think I will have to treat the problem in another way even if it will complicate things for me. thanks again On 05/22/2013 11:51 AM, Sandeep Mestry wrote: I'm running out of options now, can't really see the issue you're facing unless the debug analysis is posted.

Re: Boosting Documents

2013-05-22 Thread Sandeep Mestry
I'm running out of options now, can't really see the issue you're facing unless the debug analysis is posted. I think a thorough debugging is required from both application and solr level. If you want a customize scoring from Solr, you can also consider overriding DefaultSimilarity implementation

Re: Boosting Documents

2013-05-22 Thread Oussama Jilal
Yes I did debug it and there is nothing special about it, everything is treated the same, My Solr version is 4.2 The copy field is used because the 2 field are of different types but only one value is indexed in them (so no multiValue is required and it works perfectly). On 05/22/2013 11:

Re: Boosting Documents

2013-05-22 Thread Sandeep Mestry
Did you use the debugQuery=true in solr console to see how the query is being interpreted and the result calculation? Also, I'm not sure but this copyfield directive seems a bit confusing to me.. Because multiValued is false for Suggestion field so does that schema mean Suggestion has value only

Re: Boosting Documents

2013-05-22 Thread Oussama Jilal
I don't know if this can help (since the document boost should be independent of any schema) but here is my schema : |

Re: Boosting Documents

2013-05-22 Thread Sandeep Mestry
I think that is applicable only for the field level boosting and not at document level boosting. Can you post your query, field definition and results you're expecting. I am using index and query time boosting without any issues so far. also which version of Solr you're using? On 22 May 2013 10

Re: Boosting Documents

2013-05-22 Thread Oussama Jilal
I don't know if this is the issue or not but, concidering this note from the wiki : NOTE: make sure norms are enabled (omitNorms="false" in the schema.xml) for any fields where the index-time boost should be stored. In my case where I only need to boost the whole document (not a specific fie

Re: Boosting Documents

2013-05-22 Thread Oussama Jilal
Thank you Sandeep, I did post the document like that (a minor difference is that I did not add the boost to the field since I don't want to boost on specific field, I boosted the whole document ' '), but the issue is that everything in the queries results has the same score even if they

Re: Boosting Documents

2013-05-22 Thread Sandeep Mestry
Hi Oussama, This is explained very nicely on Solr Wiki.. http://wiki.apache.org/solr/SolrRelevancyFAQ#index-time_boosts http://wiki.apache.org/solr/UpdateXmlMessages#Optional_attributes_for_.22add.22 All you need to do is something similar to below.. - 05991 Bridgewater What i

Re: Boosting Documents

2013-05-22 Thread Oussama Jilal
Thank you for your reply bbarani, I can't do that because I want to boost some documents over others, independing of the query. On 05/21/2013 05:41 PM, bbarani wrote: Why don't you boost during query time? Something like q=superman&qf=title^2 subject You can refer: http://wiki.apache.org/s

Re: Boosting Documents

2013-05-21 Thread bbarani
Why don't you boost during query time? Something like q=superman&qf=title^2 subject You can refer: http://wiki.apache.org/solr/SolrRelevancyFAQ -- View this message in context: http://lucene.472066.n3.nabble.com/Boosting-Documents-tp4064955p4064966.html Sent from the Solr - User mailing list

Re: Boosting documents with terms derived from clustering - good idea?

2013-05-19 Thread Otis Gospodnetic
Hi, I would take a different approach. Track users' queries and their clicks. Aggregate queries and start thinking of them as tags/labels. Aggregate them and use top N to tag your docs. Alternatively/additionally, extract significant terms and phrases from clicked-to docs and use that to tag you

RE: Boosting based on filter query

2013-03-11 Thread Van Tassell, Kristian
Thank you! -Original Message- From: Erik Hatcher [mailto:erik.hatc...@gmail.com] Sent: Monday, March 11, 2013 8:50 AM To: solr-user@lucene.apache.org Subject: Re: Boosting based on filter query Definitely can do this, but how depends on the query parser you're using. With d

Re: Boosting based on filter query

2013-03-11 Thread Erik Hatcher
Definitely can do this, but how depends on the query parser you're using. With dismax/edismax you can use bq=filetype:pdf^10 (where "filetype:pdf" is a valid Lucene query parser expression for your documents). Erik On Mar 11, 2013, at 09:31 , Van Tassell, Kristian wrote: > I want to

  1   2   3   4   >