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. search = new { query = new { query_string = new { query = keyword, default_field = "_all" } }, from = 0, size = limitAllTypes, aggs = new { top_types = new { terms = new { field = "_type" }, aggs = new { top_type_hits = new { top_hits = new { size = limitPerType } } } } } ElasticsearchResponse<DynamicDictionary> searchResponse = client.Search("jdbc", search, null); How do i tell this to boost the name and id fields over all other fields. If I'm searching for "My Searched Company" and that is in the Name field I want it at the top of the list. vs in notes, addresses or whatever other columns etc. -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/ccffa252-30c4-444d-9bbb-cd28a1acec50%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.