Skip to content
Snippets Groups Projects
Commit 5123768b authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Cs+ Wot: Allow to find a Cs+ profile, event if Duniter node not return the pubkey - fix #804

parent 8c23a627
No related branches found
No related tags found
No related merge requests found
...@@ -193,15 +193,13 @@ angular.module('cesium.es.profile.services', ['cesium.services', 'cesium.es.http ...@@ -193,15 +193,13 @@ angular.module('cesium.es.profile.services', ['cesium.services', 'cesium.es.http
} }
else { else {
request.query.constant_score = { request.query.constant_score = {
filter: {bool: {should: [ filter: {bool: {
{terms : {_id : pubkeys}}, should: [
{bool: { {terms : {"_id^4" : pubkeys}},
must: [
{match: {title: {query: text, boost: 2}}}, {match: {title: {query: text, boost: 2}}},
{prefix: {title: text}} {prefix: {title: text}}
]} ]}
} }
]}}
}; };
if (tags) { if (tags) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment