This is a migrated thread and some comments may be shown as answers.

KENDO WITH Elastic search integration issue

1 Answer 153 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Suman
Top achievements
Rank 1
Suman asked on 29 May 2015, 02:25 AM

I created a dropdown for sorting Elastic Search queries , see below

  <input data-role="combobox"

                    data-value-field="sortDescription"
                    data-text-field="sortDescription"
                   data-bind="value:sortDescription,
                              source: sortOptions,
                              visible: isVisible,
                              enabled: isEnabled,
                              events: {
                                change: onChange,
                                open: onOpen,
                                close: onClose
                              }"
                   style="width: 300px"
            />

 I created Index on Elastic search with Id ,title ,Price,Location

 sortdescription holds the value that we selected in the dropdown, when I pass sortdescription to Elastic search queries through Kendo ,its converting sortdescription to String and its not replacing the selected value,

 Appreciate your thoughts/Suggestions. 

var querydata= {
  "fields": ["_id", "title", "description","price"],

  "query": {
"filtered" : {
            "filter": {
            "bool": {
       "must": {
        "geo_distance_range" : {
                "from" : "0km",
                "to" : "20km",
    "location" : {
  "lat" : 40.12,
  "lon" : -71.34
  }
    }
      },
                 }
              }
         }
        },
        "sort": [
        { sortdescription :   { "order": "asc" }},
        { "_score": { "order": "asc" }}
    ]

    };

  

 

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 02 Jun 2015, 03:51 PM

Hello Suman,

I am not sure that I fully understand the scenario, but I prepared a sample http://dojo.telerik.com/@ggkrustev/AKuMU example following the provided code. 

If the is not the exact functionality you are trying to achieve, please modify this example in order to replicate the described issue. 

Regards,
Boyan Dimitrov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Suman
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or