Solr Index time boosting

72 views
Skip to first unread message

Deepak Thayyil

unread,
Apr 20, 2015, 10:11:30 AM4/20/15
to sol...@googlegroups.com
Hi ,
Am using solr.net I have some issues ,
Actually am adding docs with addrangewithboost method I have set all doc with a boost value .but while searching me not able to retrieve document with the boosted order

Mauricio Scheffer

unread,
Apr 20, 2015, 10:24:49 AM4/20/15
to sol...@googlegroups.com
Hi, can you explain in more detail what you expect to see and what you're actually seeing? Maybe share some code?

Cheers



--
Mauricio


--
You received this message because you are subscribed to the Google Groups "SolrNet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to solrnet+u...@googlegroups.com.
To post to this group, send email to sol...@googlegroups.com.
Visit this group at http://groups.google.com/group/solrnet.
For more options, visit https://groups.google.com/d/optout.

Deepak Thayyil

unread,
Apr 21, 2015, 3:32:01 AM4/21/15
to sol...@googlegroups.com
Hi,

   While indexing am doing like this 

               int count = DBEntities.solr_updatedata.Count();
                float NoofSubmits = (int)Math.Ceiling((double)count / 5000);

                for (int i = 0; i < NoofSubmits; i++)
                {
                    IEnumerable<KeyValuePair<SolrProduct, double?>> SolrDocuments = DBEntities.solr_updatedata.Where(y => y.Url != null).OrderBy(x => x.Id).Skip(i *                5000).Take(5000).ToList().SetSolrDocument();
                   
                    solr.AddRangeWithBoost(SolrDocuments);
                }

                solr.Commit();

               The above code is work i don't get any error but in my application me want to get the product with the boosted order but its get lover booted things first like if i set one doc have 2 and some doc have 9 , but me getting value some 2 is first and 9 last  

dee...@ejeeva.com

unread,
Apr 27, 2015, 4:29:25 AM4/27/15
to sol...@googlegroups.com
Hi
Mauricio Scheffer ,
   
 How can i check index time boosting is working or not ? Is there any option to view the doc index time boost value ??


On Monday, April 20, 2015 at 7:54:49 PM UTC+5:30, Mauricio Scheffer wrote:

Mauricio Scheffer

unread,
May 3, 2015, 10:08:26 AM5/3/15
to sol...@googlegroups.com
I don't think Solr offers any way to directly retrieve the index-time boosts. Maybe with the Luke request handler. Try asking in the Solr mailing lists.

SolrNet only sends the boost in the corresponding XML command to Solr. That has been tested in SolrNet for years now: https://github.com/mausch/SolrNet/blob/6c0022c91b3902dbcebb36d38e280d4f30bed90f/SolrNet.Tests/SolrOperationsTests.cs#L88-L103

Cheers
Reply all
Reply to author
Forward
0 new messages