I recently migrated from ES 0.90.3 to ES 1.1.0 but facing few issues while
migration.
I was earlier using a field query filter based on the value of a field
which is present in my document. Now, in ES 1.1.0 there is no such filter.
Can anyone tell me what equivalent filter can be used. For eg, let's say I
have a boolean field FIELD in my document and I want to put a filter based
on the value of documents. So, I want only those documents for which this
is TRUE. How can I achieve this in ES 1.1.0.
I searched on forums about this issue. At one place I found field query
is effectively same as query_string. I'm not getting this concept
completely. Can anyone please explain this with some example.
Also, I'm exploring what all features are added in this new version but
not able to find any proper java documentation. I found one link but that
also is not complete. Any pointer to good links. Let's say I want to
explore some particular query like function score, how can I find what all
methods are there equivalent to query dsl in java implementation.
The field query is basically the query string query with the field
explicitly defined:
The best resources for the Java API is to look at the unit tests and the
equivalent REST API classes. For example, RestSearchAction,
RestIndexAction, RestClusterHealthAction, etc.
I recently migrated from ES 0.90.3 to ES 1.1.0 but facing few issues while
migration.
I was earlier using a field query filter based on the value of a field
which is present in my document. Now, in ES 1.1.0 there is no such filter.
Can anyone tell me what equivalent filter can be used. For eg, let's say I
have a boolean field FIELD in my document and I want to put a filter based
on the value of documents. So, I want only those documents for which this
is TRUE. How can I achieve this in ES 1.1.0.
I searched on forums about this issue. At one place I found field query
is effectively same as query_string. I'm not getting this concept
completely. Can anyone please explain this with some example.
Also, I'm exploring what all features are added in this new version but
not able to find any proper java documentation. I found one link but that
also is not complete. Any pointer to good links. Let's say I want to
explore some particular query like function score, how can I find what all
methods are there equivalent to query dsl in java implementation.
Just one confusion. let's say I want to query for a field which contains
boolean value either true or false. So, writing query string with field =
"true" won't search for that particular documents containing true for that
boolean field. How can I achive this ? String "true" is different from
boolean true, right ?
On Thursday, 22 May 2014 03:57:05 UTC+5:30, Ivan Brusic wrote:
The field query is basically the query string query with the field
explicitly defined:
The best resources for the Java API is to look at the unit tests and the
equivalent REST API classes. For example, RestSearchAction,
RestIndexAction, RestClusterHealthAction, etc.
Cheers,
Ivan
On Wed, May 21, 2014 at 10:46 AM, coder <mukul...@gmail.com <javascript:>>wrote:
Hi,
I recently migrated from ES 0.90.3 to ES 1.1.0 but facing few issues
while migration.
I was earlier using a field query filter based on the value of a field
which is present in my document. Now, in ES 1.1.0 there is no such filter.
Can anyone tell me what equivalent filter can be used. For eg, let's say I
have a boolean field FIELD in my document and I want to put a filter based
on the value of documents. So, I want only those documents for which this
is TRUE. How can I achieve this in ES 1.1.0.
I searched on forums about this issue. At one place I found field
query is effectively same as query_string. I'm not getting this concept
completely. Can anyone please explain this with some example.
Also, I'm exploring what all features are added in this new version
but not able to find any proper java documentation. I found one link but
that also is not complete. Any pointer to good links. Let's say I want to
explore some particular query like function score, how can I find what all
methods are there equivalent to query dsl in java implementation.
Why not use a term query/filter? Boolean fields are not analyzed, so a term
query would be the best path.
If you are not using the Lucene query syntax, the match query would also be
preferable. I do not use string values to represent boolean/numeric
entities.
Just one confusion. let's say I want to query for a field which contains
boolean value either true or false. So, writing query string with field =
"true" won't search for that particular documents containing true for that
boolean field. How can I achive this ? String "true" is different from
boolean true, right ?
On Thursday, 22 May 2014 03:57:05 UTC+5:30, Ivan Brusic wrote:
The field query is basically the query string query with the field
explicitly defined:
The best resources for the Java API is to look at the unit tests and the
equivalent REST API classes. For example, RestSearchAction,
RestIndexAction, RestClusterHealthAction, etc.
I recently migrated from ES 0.90.3 to ES 1.1.0 but facing few issues
while migration.
I was earlier using a field query filter based on the value of a
field which is present in my document. Now, in ES 1.1.0 there is no such
filter. Can anyone tell me what equivalent filter can be used. For eg,
let's say I have a boolean field FIELD in my document and I want to put a
filter based on the value of documents. So, I want only those documents for
which this is TRUE. How can I achieve this in ES 1.1.0.
I searched on forums about this issue. At one place I found field
query is effectively same as query_string. I'm not getting this concept
completely. Can anyone please explain this with some example.
Also, I'm exploring what all features are added in this new version
but not able to find any proper java documentation. I found one link but
that also is not complete. Any pointer to good links. Let's say I want to
explore some particular query like function score, how can I find what all
methods are there equivalent to query dsl in java implementation.
Thanks
--
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.
Actually, I tried using the term filter but it doesn't work when the field
on which it is applied is not present in all the documents. It works fine
if the field is present in all the documents.
Thanks,
On Thu, May 22, 2014 at 10:33 PM, Ivan Brusic ivan@brusic.com wrote:
Why not use a term query/filter? Boolean fields are not analyzed, so a
term query would be the best path.
If you are not using the Lucene query syntax, the match query would also
be preferable. I do not use string values to represent boolean/numeric
entities.
Just one confusion. let's say I want to query for a field which contains
boolean value either true or false. So, writing query string with field =
"true" won't search for that particular documents containing true for that
boolean field. How can I achive this ? String "true" is different from
boolean true, right ?
On Thursday, 22 May 2014 03:57:05 UTC+5:30, Ivan Brusic wrote:
The field query is basically the query string query with the field
explicitly defined:
The best resources for the Java API is to look at the unit tests and the
equivalent REST API classes. For example, RestSearchAction,
RestIndexAction, RestClusterHealthAction, etc.
I recently migrated from ES 0.90.3 to ES 1.1.0 but facing few issues
while migration.
I was earlier using a field query filter based on the value of a
field which is present in my document. Now, in ES 1.1.0 there is no such
filter. Can anyone tell me what equivalent filter can be used. For eg,
let's say I have a boolean field FIELD in my document and I want to put a
filter based on the value of documents. So, I want only those documents for
which this is TRUE. How can I achieve this in ES 1.1.0.
I searched on forums about this issue. At one place I found field
query is effectively same as query_string. I'm not getting this concept
completely. Can anyone please explain this with some example.
Also, I'm exploring what all features are added in this new version
but not able to find any proper java documentation. I found one link but
that also is not complete. Any pointer to good links. Let's say I want to
explore some particular query like function score, how can I find what all
methods are there equivalent to query dsl in java implementation.
Thanks
--
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.
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.