Closed GoogleCodeExporter closed 8 years ago
This code solves the issue:
var query = new SolrMultipleCriteriaQuery(
new[]
{
new SolrQueryByField( "Board", text, false ).Boost( 5 ),
new SolrQueryByField( "User", text, false ).Boost( 1 ),
new SolrQueryByField( "Description", text, false ).Boost( 10 )
} );
var queryOptions = new QueryOptions
{
Fields = new[] { "IDPin,IDPicture" },
Rows = searchSize,
ExtraParams = new Dictionary<String, String>
{
{ "ps", slopDistance.ToString() }
}
};
queryResults = solrClient.Query(query, queryOptions);
Original comment by ophirmic...@gmail.com
on 10 Jun 2013 at 3:31
https://groups.google.com/d/msg/solrnet/NF_Z3kOxTx8/FmbkpuuZjSsJ
Original comment by mauricio...@gmail.com
on 11 Jun 2013 at 8:26
Original issue reported on code.google.com by
ophirmic...@gmail.com
on 9 Jun 2013 at 1:03