Quantcast
Channel: Faceted search with aggregations
Browsing all 22 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Faceted search with aggregations

@decodeit wrote: I am trying to do faceted search with aggregation (which I think is the way to do, suggestions are welcome). so the query below is sending the search term with the aggs. POST...

View Article



Faceted search with aggregations

@simplesmente wrote: You need to use the selected content in a bool query using term filter. If you do want to keep all the options even when the results are filtered after queried, see this There's...

View Article

Faceted search with aggregations

@decodeit wrote: so this is my current query I tried with filter. I am getting error saying `"reason": "[multi_match] malformed query, expected [END_OBJECT] but found [FIELD_NAME]",` { "query":{...

View Article

Faceted search with aggregations

@simplesmente wrote: There you go: { "query": { "bool": { "must": [ { "multi_match": { "query": "phone", "fields": [ "title", "description" ] } } ], "filter": [ { "terms": { "brand": [ "samsung",...

View Article

Faceted search with aggregations

@decodeit wrote: if my filter is just one word like samsung or Apple. it works fine but if its a phrase like general social survey. even though I have that exact phrase in my index, it gives me zero...

View Article


Faceted search with aggregations

@simplesmente wrote: Yes, it can be a phrase. If you could share the piece of code you're writing and a data sample, it would be easier to help you. Read full topic

View Article

Faceted search with aggregations

@decodeit wrote: `{ "query": { "bool": { "must": { "multi_match": { "query": " social survey", "fields": [ "title", "abstract" ] } }, "filter":[ {"match_phrase": {"survey":{"query": "Aboriginal...

View Article

Faceted search with aggregations

@simplesmente wrote: What you are doing in there is that it's looking for a "Aboriginal Peoples survey" survey AND "population characteristics" subject. Maybe it is the reason why you're not getting...

View Article


Faceted search with aggregations

@decodeit wrote: What you are suggesting is, it will give results if the document matches either survey or the subjects. I would like those documents to match who has this survey and this subject...

View Article


Faceted search with aggregations

@simplesmente wrote: Sorry about the delay on getting back to you on this. So, you can git the terms a try, like I suggest in here: "filter": [ { "terms": { "brand": [ "phrase 1", "phrase 2" ] } } ]...

View Article

Faceted search with aggregations

@decodeit wrote: I have tried this. The issue with this is since its terms, its searches for "phrase" and "1" in subjects however, I want it to match the subjects that has exactly" phrase 1". but...

View Article

Faceted search with aggregations

@simplesmente wrote: You can use {{#toJson}}subjects{{/toJson}} See here how to use it. Hope you find it useful. Read full topic

View Article

Faceted search with aggregations

@decodeit wrote: where do I put the field I want it to search then. I am trying to figure out the difference between what you gave and this {{#join}}emails{{/join}} Read full topic

View Article


Faceted search with aggregations

@simplesmente wrote: There's an example in the documentation. The difference is that join will send the values passed through param as a string separated by commas and json will send the values as an...

View Article

Faceted search with aggregations

@decodeit wrote: so now I am using it like this: `{ "source": { "query": { "bool":{ "must":[ {"match_phrase": {"subjects.en": "{{#join}}subjects{{/join}}"}}, {"match_phrase": {"survey.title.en":...

View Article


Faceted search with aggregations

@simplesmente wrote: Instead of passing only the terms as a parameter, you might need to pass the whole match phrase condition. I think you could do something like this: "source": { "query": {...

View Article

Faceted search with aggregations

@decodeit wrote: This is giving error, `error": { "root_cause": [ { "type": "parsing_exception", "reason": "Could not parse inline template", "line": 6, "col": 9 } ], "type":...

View Article


Faceted search with aggregations

@simplesmente wrote: Try this: "source": "{\"query\": {\"bool\":{\"must\":[{{#toJson}}subjects{{/toJson}},{{#toJson}}surveys{{/toJson}}]}}}", "params": { "subjects": [ {"match_phrase": {"subjects.en":...

View Article

Faceted search with aggregations

@decodeit wrote: would there be "and" or "OR" relation between subjects and surveys? and what about between subjects itself. will there be an "OR" Read full topic

View Article

Faceted search with aggregations

@simplesmente wrote: All "and". This is what you wanted in the first place, isn't it? Read full topic

View Article
Browsing all 22 articles
Browse latest View live




Latest Images