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
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
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
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
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:
{
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.