Re: How to Boost

2015-05-01 Thread GWired
I got it: To add an array of var to an anonymous type add them like this. var field1 = new {field=Name^20}; var field2 = new {field = _all}; var field3 = new {field = Id^20}; var myfields = new [] {field1,field2}; This is slick now it puts the

Re: How to Boost

2015-04-30 Thread GWired
I was able to get this to work in ES using head and got back what i needed. However translating to ElasticSearch.net has been an issue. I have an anonymous type doing a match all query and this works fine and dandy. I am trying to do the multi_match as above but it isn't returning any

Re: How to Boost

2015-04-29 Thread Joel Potischman
You could use a boosting query http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-boosting-query.html, or you could use a multi-match query http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html and add a boost directly to the

Re: Need suggestion: How to boost specific documents for a given search term

2015-04-29 Thread Xudong You
Any one has good suggestion? On Tuesday, April 28, 2015 at 11:01:40 PM UTC+8, Xudong You wrote: Hi ES experts, I need your help on index design for a real scenario. It might be a long question, let me try explain it as concise as possible. We are building a search engine to provide site

Need suggestion: How to boost specific documents for a given search term

2015-04-28 Thread Xudong You
Hi ES experts, I need your help on index design for a real scenario. It might be a long question, let me try explain it as concise as possible. We are building a search engine to provide site search for our customers, the document in index could be something like this: {

How to Boost

2015-04-28 Thread GWired
I am attempting to boost values for queries. I'm searching across all fields and tables and returning 25 results for each type. This is working fine however I need to Boost if the field name Name or the Field Name ID have the value in it. I'm using ElasticSearchClient and sending this search.