query multiple words with AND and OR operators

2015-03-09 Thread Leandro Camargo
Hi.

Lets say I query my website with "interesting question" term.
I want to match occurrences *preferably* with both words, and add to the 
results less important entries with 1 to N-1 passed words in the term.
Is there a way to perform one single search to achieve that?

Thanks in advance.

-- 
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/89529351-9ddc-4a25-a38e-b54b76d2d2d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Extending the original _source data

2015-02-18 Thread Leandro Camargo
Hello.

I want to know if it's possible put a bit more data inside the _source 
attribute, compared to the original ones that are already included from the 
indexed fields.
If it is, how could I do it?

Thanks in advance.
-- Leandro

-- 
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/49fb2c0c-b300-4511-b55f-4d2c858231ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.