Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Anyone got any idea how i could search in a specific field with elasticsearch? For example only get hits when the search query matches the title:
$.ajax({
url: xxxxxxxxxxxxxxxx,
dataType: "jsonp",
data: {
type: "TestSite_Web_Models_Pages_StandardPage",
q: query + "*",
size: 10,
df: [Title$$string.lowercase"]
},
success: function (response) {
var item = response.hits.hits;
if (item.length > 0) {
console.log(item);
for (var i = 0; i < item.length; i++) {
alert(item[i]._source.StaticLinkURL$$string);
}
}
},
});