I'm seeing something puzzling: I have a query that returns quite
different results depending on how I restrict the query by type.
(1) adding "filter": { "type": { "value": "my_type" } } into the query
(2) restricting the search in the URL : curl -XGET http://localhost:9200/index/my_type
...
I use a document level _boost that is seemingly ignored when the query
is run using (1). Shouldn't these two methods be equivalent? Or what
is the difference that I am missing?
I'm seeing something puzzling: I have a query that returns quite
different results depending on how I restrict the query by type.
(1) adding "filter": { "type": { "value": "my_type" } } into the query
(2) restricting the search in the URL : curl -XGEThttp://localhost:9200/index/my_type
...
I use a document level _boost that is seemingly ignored when the query
is run using (1). Shouldn't these two methods be equivalent? Or what
is the difference that I am missing?
By "different results", you mean the same results, but in a different
order? I don't know what /index/my_type is translated into, but filter
results in general don't have a guaranteed order.
I'm seeing something puzzling: I have a query that returns quite
different results depending on how I restrict the query by type.
(1) adding "filter": { "type": { "value": "my_type" } } into the query
(2) restricting the search in the URL : curl -XGEThttp://localhost:9200/index/my_type
...
I use a document level _boost that is seemingly ignored when the query
is run using (1). Shouldn't these two methods be equivalent? Or what
is the difference that I am missing?
By "different results", you mean the same results, but in a different
order? I don't know what /index/my_type is translated into, but filter
results in general don't have a guaranteed order.
On Wed, 2012-03-14 at 11:27 -0700, James Wilson wrote:
I'm seeing something puzzling: I have a query that returns quite
different results depending on how I restrict the query by type.
(1) adding "filter": { "type": { "value": "my_type" } } into the query
(2) restricting the search in the URL : curl -XGET http://localhost:9200/index/my_type
...
I use a document level _boost that is seemingly ignored when the query
is run using (1). Shouldn't these two methods be equivalent? Or what
is the difference that I am missing?
Could you gist a complete curl example demonstrating the issue?
A recreation would be great. Note though, that hte field name that the type
uses is named "_type", not "type". When you search on
/index_name/type_name, the query executed is wrapped with a filter against
_type field.
On Wed, 2012-03-14 at 11:27 -0700, James Wilson wrote:
I'm seeing something puzzling: I have a query that returns quite
different results depending on how I restrict the query by type.
(1) adding "filter": { "type": { "value": "my_type" } } into the query
(2) restricting the search in the URL : curl -XGET http://localhost:9200/index/my_type
...
I use a document level _boost that is seemingly ignored when the query
is run using (1). Shouldn't these two methods be equivalent? Or what
is the difference that I am missing?
Could you gist a complete curl example demonstrating the issue?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.