Re: Solr Exact match boost Reduce the results

2015-06-23 Thread JACK
Hi Alessandro Benedetti, Can you check what happens to the below given product_name , just check its score "product_name":"LAPTOP BATTERY DELL Inspiron 6400 1501 E1505 RD859 UD267 XU937" How is this product comes , ? -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-Ex

Re: Solr Exact match boost Reduce the results

2015-06-23 Thread Alessandro Benedetti
Hi Jack, 2015-06-23 6:27 GMT+01:00 JACK : > Hi Alessandro Benedetti, > > I have changed the query like this. > > > /select?q=("dell+laptop"~13+OR+"dell+laptop")&df=product_name&defType=edismax&qf=product_name^0.001+dummy_product_name^2&fl=product_name&wt=json&indent=true&debug=true > Pardon

Re: Solr Exact match boost Reduce the results

2015-06-22 Thread JACK
Hi Alessandro Benedetti, I have changed the query like this. /select?q=("dell+laptop"~13+OR+"dell+laptop")&df=product_name&defType=edismax&qf=product_name^0.001+dummy_product_name^2&fl=product_name&wt=json&indent=true&debug=true The corresponding results also given in the below link.Now am

Re: Solr Exact match boost Reduce the results

2015-06-15 Thread Alessandro Benedetti
Your posted terms doesn't make a lot of sense … I simply indexed your content in a text_general field. Without omitting norms or applying any deep analysis. And I got the expected results. You should use the analysis tool with your different inputs, taking a look to the token stream produced. Mayb

Re: Solr Exact match boost Reduce the results

2015-06-15 Thread JACK
Hi Alessandro Benedetti, Its my Analysis value index WT text raw_bytes start end positionLength type position laptop [6c 61 70 74 6f 70] 0 6 1 word 1 bag [62 61 67] 7 10 1 word 2 SF text raw_bytes start end positionLength type position laptop [6c 61 7

Re: Solr Exact match boost Reduce the results

2015-06-15 Thread Alessandro Benedetti
Using your same data I get the expected ranking and not yours. I am using a simple analysis so I would invite you to analyse the analysis chain in first instance. as a second suggestion, are you omitting or not omitting norms ? By default they should not be omitted. 2015-06-15 11:13 GMT+01:00 JACK

Re: Solr Exact match boost Reduce the results

2015-06-15 Thread JACK
Hi Alessandro Benedetti, The query is http://localhost:8983/solr/MYDBCORE/select?q=product_name:(laptop+bag)&wt=json&indent=true 1.Dell Inspiron 3542 Laptop (Black) without Laptop Bag 2.Dell 3542 15-inch Laptop with Laptop Bag by Dell 3.Dell Inspiron N3137 11-inch Laptop without Laptop Bag by De

Re: Solr Exact match boost Reduce the results

2015-06-15 Thread Alessandro Benedetti
I read you are using a really deep analysed field type. Let's forget about the dummy copy field. Can you show me based on your main field, an example of query, and an example of first 20 results ? Showing me the ranking you get and the ranking you expect ? Cheers 2015-06-15 10:39 GMT+01:00 Alessa

Re: Solr Exact match boost Reduce the results

2015-06-15 Thread Alessandro Benedetti
2015-06-12 17:53 GMT+01:00 JACK : > As explained above, actually I have around 10 lack data not 5 row. This is not changing how the edismax and norms in Solr work. So it's not a point. > It's not > about synonyms . When I checked in the FAQ page of Solr wiki, it is found > that if we need to ge

RE: Solr Exact match boost Reduce the results

2015-06-14 Thread JACK
Hi chillra, I have changed the index and query filed configuration to But still my problem not solved , it won't resolve my problem. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-Exact-match-boost-Reduce-the-results-tp4211352p4211788.html Sent from the Solr - U

RE: Solr Exact match boost Reduce the results

2015-06-12 Thread Andrew Chillrud
Andy - -Original Message- From: JACK [mailto:mfal...@gmail.com] Sent: Friday, June 12, 2015 12:54 PM To: solr-user@lucene.apache.org Subject: Re: Solr Exact match boost Reduce the results As explained above, actually I have around 10 lack data not 5 row. It's not about synonym

Re: Solr Exact match boost Reduce the results

2015-06-12 Thread JACK
As explained above, actually I have around 10 lack data not 5 row. It's not about synonyms . When I checked in the FAQ page of Solr wiki, it is found that if we need to get exact match results first, use a copy field with different configuration. That's why I followed this way. -- View this mes

Re: Solr Exact match boost Reduce the results

2015-06-12 Thread Alessandro Benedetti
I did a simple test using out of the Box Edismax ( not even configuring specific params or the phrase field). As expected the exact match comes first. This is because of the norms and the natural way the Edismax boost exact matches. Are you sure you are using a proper query parser ? I did nothing

Re: Solr Exact match boost Reduce the results

2015-06-12 Thread JACK
The quoted search words will be different and it will be any word or more than one word. In the query it's just example -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-Exact-match-boost-Reduce-the-results-tp4211352p4211410.html Sent from the Solr - User mailing list ar

Re: Solr Exact match boost Reduce the results

2015-06-12 Thread JACK
Hi, I have to search on the field product_name.It is found that in order to get exact matches first, I made one copy field named as dummy_name with the above field definition.And while query, just boost the copy field. I done this. So as to get exact matches I need to put quotes around the search w

Re: Solr Exact match boost Reduce the results

2015-06-12 Thread Alessandro Benedetti
Are we talking about a title field ? Querying only that title field ? And the texts you put are the titles ? If this is the case and you are not omitting norms ( because norms boost short field containing the query terms). The second results should be the ones expected. Can you describe a little

Re: Solr Exact match boost Reduce the results

2015-06-12 Thread JACK
Hi Alessandro Benedetti , What i meant is that suppose if i have items like this dell laptop with bag dell laptop dell laptop without bag dell inspiron laptop with bag if i query for "dell laptop", the result should be like this dell laptop dell laptop with bag dell laptop without bag dell inspir

Re: Solr Exact match boost Reduce the results

2015-06-12 Thread Alessandro Benedetti
Hi jack, do you mean exact match over the synonyms ? In that case, with your Analyzer you are not going to be able to see that. You apply index analysis synonym expansion. So for your Index there is no difference between the synonyms, there is no "exact match" . In this case I would suggest you to