Boosting query howto?

I tried the following query

{
"fields": [
"score",
"title",
"price"
],
"boosting": {
"positive": {
"term": {
"text": "einzelhandel"
}
},
"negative": {
"term": {
"price": "100"
}
},
"negative_boost": 0.0025,
"boost": 200
}
}

What I'm trying to do is to search for "einzelhandel" with a boost of 200
(e.g. "text:einzelhandel^200")
and have hits which also match a price of 100 get boosted with 400 (e.g.
"price:100^400") to have them before all other prices.
But this doen't work, any better ideas?

Also, the fields in the result are not limited to "score,title,price".
Is this not possible with boosting query?

Regards,
Bernd

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b81716ca-6c07-493e-9645-36bc21fce798%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Have you tried boosting boolean query clauses?

Jörg

On Fri, Aug 1, 2014 at 2:39 PM, Bernd Fehling bernd.fehling@gmail.com
wrote:

I tried the following query

{
"fields": [
"score",
"title",
"price"
],
"boosting": {
"positive": {
"term": {
"text": "einzelhandel"
}
},
"negative": {
"term": {
"price": "100"
}
},
"negative_boost": 0.0025,
"boost": 200
}
}

What I'm trying to do is to search for "einzelhandel" with a boost of 200
(e.g. "text:einzelhandel^200")
and have hits which also match a price of 100 get boosted with 400 (e.g.
"price:100^400") to have them before all other prices.
But this doen't work, any better ideas?

Also, the fields in the result are not limited to "score,title,price".
Is this not possible with boosting query?

Regards,
Bernd

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/b81716ca-6c07-493e-9645-36bc21fce798%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/b81716ca-6c07-493e-9645-36bc21fce798%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHmbtRa_JgD0DuyS-KnjP0RFwgyCE%2BpSUZqLd8Vyx54%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Hi Jörg,
thanks for the advise, it seams to be my solution.

Are there any API javadocs for ES?
It takes me 3 to 4 times longer writing something for ES than for Solr
because of searching through the sources
and no useful javadocs.

Bernd

Am Freitag, 1. August 2014 16:07:10 UTC+2 schrieb Jörg Prante:

Have you tried boosting boolean query clauses?

Elasticsearch Platform — Find real-time answers at scale | Elastic

Jörg

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/489eceec-df34-4cda-86ef-bb354a162848%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Now this is strange, I have same mapping/settings for both ES and Solr, but
ES ist boosting wrong!!!
If I add a boost to Solr all boosted hits are listed first.
If I add the same boost to ES only some of the boosted hits are listed
first.

Bernd

Am Montag, 4. August 2014 08:13:10 UTC+2 schrieb Bernd Fehling:

Hi Jörg,
thanks for the advise, it seams to be my solution.

Are there any API javadocs for ES?
It takes me 3 to 4 times longer writing something for ES than for Solr
because of searching through the sources
and no useful javadocs.

Bernd

Am Freitag, 1. August 2014 16:07:10 UTC+2 schrieb Jörg Prante:

Have you tried boosting boolean query clauses?

Elasticsearch Platform — Find real-time answers at scale | Elastic

Jörg

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/056aaaa1-6b17-4ee7-a8b2-be47d22ca166%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yes, missing Javadoc online is a pity. So I have prepared a javadoc for
Elasticsearch 1.3.1 here

http://xbib.org/elasticsearch/1.3.1/apidocs/

Jörg

On Mon, Aug 4, 2014 at 8:13 AM, Bernd Fehling bernd.fehling@gmail.com
wrote:

Hi Jörg,
thanks for the advise, it seams to be my solution.

Are there any API javadocs for ES?
It takes me 3 to 4 times longer writing something for ES than for Solr
because of searching through the sources
and no useful javadocs.

Bernd

Am Freitag, 1. August 2014 16:07:10 UTC+2 schrieb Jörg Prante:

Have you tried boosting boolean query clauses?

Elasticsearch Platform — Find real-time answers at scale | Elastic
current/_boosting_query_clauses.html

Jörg

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/489eceec-df34-4cda-86ef-bb354a162848%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/489eceec-df34-4cda-86ef-bb354a162848%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEi_RVS2PUSgMyyieTYSfrDGMj8UBjCOx7xLV5xOb3AWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Thanks a lot.
+1

This MUST be on the ES Web page.

Am Montag, 4. August 2014 14:00:59 UTC+2 schrieb Jörg Prante:

Yes, missing Javadoc online is a pity. So I have prepared a javadoc for
Elasticsearch 1.3.1 here

http://xbib.org/elasticsearch/1.3.1/apidocs/

Jörg

On Mon, Aug 4, 2014 at 8:13 AM, Bernd Fehling <bernd....@gmail.com
<javascript:>> wrote:

Hi Jörg,
thanks for the advise, it seams to be my solution.

Are there any API javadocs for ES?
It takes me 3 to 4 times longer writing something for ES than for Solr
because of searching through the sources
and no useful javadocs.

Bernd

Am Freitag, 1. August 2014 16:07:10 UTC+2 schrieb Jörg Prante:

Have you tried boosting boolean query clauses?

http://www.elasticsearch.org/guide/en/elasticsearch/guide/
current/_boosting_query_clauses.html

Jörg

--
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/489eceec-df34-4cda-86ef-bb354a162848%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/489eceec-df34-4cda-86ef-bb354a162848%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b0fd691a-03ac-4119-b3c6-9bb963320305%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Javadocs also available at

http://jenkins.elasticsearch.org/job/Elasticsearch%20Master%20Branch%20Javadoc/Elasticsearch_API_Documentation/

http://javadoc.kyubu.de/elasticsearch/ (unofficial)

--
Ivan

On Mon, Aug 4, 2014 at 5:28 AM, Bernd Fehling bernd.fehling@gmail.com
wrote:

Thanks a lot.
+1

This MUST be on the ES Web page.

Am Montag, 4. August 2014 14:00:59 UTC+2 schrieb Jörg Prante:

Yes, missing Javadoc online is a pity. So I have prepared a javadoc for
Elasticsearch 1.3.1 here

http://xbib.org/elasticsearch/1.3.1/apidocs/

Jörg

On Mon, Aug 4, 2014 at 8:13 AM, Bernd Fehling bernd....@gmail.com
wrote:

Hi Jörg,
thanks for the advise, it seams to be my solution.

Are there any API javadocs for ES?
It takes me 3 to 4 times longer writing something for ES than for Solr
because of searching through the sources
and no useful javadocs.

Bernd

Am Freitag, 1. August 2014 16:07:10 UTC+2 schrieb Jörg Prante:

Have you tried boosting boolean query clauses?

http://www.elasticsearch.org/guide/en/elasticsearch/guide/cu
rrent/_boosting_query_clauses.html

Jörg

--
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 elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/489eceec-df34-4cda-86ef-bb354a162848%
40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/489eceec-df34-4cda-86ef-bb354a162848%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/b0fd691a-03ac-4119-b3c6-9bb963320305%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/b0fd691a-03ac-4119-b3c6-9bb963320305%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDLrzRUeHfYOorJ7vPxWmwpiNUHocKBSHC1a7tbePM1vg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.