But in the results , I am getting records that has "bi" = "qa". I am
supposed to get results which match "pl=728x90" AND that doesnt have
"bi=qa". Please let me know if I am doing something wrong.
Can you provide a few examples documents that are being matched but should
not be? The mapping would also be helpful.
Term queries are not analyzed, so they will only match exactly
(case sensitive) the token in the index. Also, if you do not need to have
your items ranked/score, it would be more efficient to have that query as a
filter instead.
But in the results , I am getting records that has "bi" = "qa". I am
supposed to get results which match "pl=728x90" AND that doesnt have
"bi=qa". Please let me know if I am doing something wrong.
Hi Ivan
Sorry for the delay. The issue turned out that we were using "." (eg :
xyz.1) in the searchable fields . Looks like ES treats "." as special
character and during tokenization it is replaced with space.
I am thinking of using "not_analyzed" for strings that needn't be
tokenized. Do you recommend using cache with filters? In that case I assume
we'll loose all the updates unless the expiry is too short .
Thanks
George
On Wed, Mar 27, 2013 at 11:31 AM, Ivan Brusic ivan@brusic.com wrote:
Can you provide a few examples documents that are being matched but should
not be? The mapping would also be helpful.
Term queries are not analyzed, so they will only match exactly
(case sensitive) the token in the index. Also, if you do not need to have
your items ranked/score, it would be more efficient to have that query as a
filter instead.
But in the results , I am getting records that has "bi" = "qa". I am
supposed to get results which match "pl=728x90" AND that doesnt have
"bi=qa". Please let me know if I am doing something wrong.
Thanks
G
--
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.
Hi Ivan
Sorry for the delay. The issue turned out that we were using "." (eg :
xyz.1) in the searchable fields . Looks like ES treats "." as special
character and during tokenization it is replaced with space.
I am thinking of using "not_analyzed" for strings that needn't be
tokenized. Do you recommend using cache with filters? In that case I assume
we'll loose all the updates unless the expiry is too short .
Thanks
George
On Wed, Mar 27, 2013 at 11:31 AM, Ivan Brusic ivan@brusic.com wrote:
Can you provide a few examples documents that are being matched but
should not be? The mapping would also be helpful.
Term queries are not analyzed, so they will only match exactly
(case sensitive) the token in the index. Also, if you do not need to have
your items ranked/score, it would be more efficient to have that query as a
filter instead.
But in the results , I am getting records that has "bi" = "qa". I am
supposed to get results which match "pl=728x90" AND that doesnt have
"bi=qa". Please let me know if I am doing something wrong.
Thanks
G
--
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.
Thanks Ivan. When we set cachable as true, are the results of the filter
also cached or just the filter query is cached. Can you please confirm.
I am using Java DSL for filter query and had to wrap with a constant score
(we dont need scoring) query to get the results. Does the below query
look fine?
Hi Ivan
Sorry for the delay. The issue turned out that we were using "." (eg :
xyz.1) in the searchable fields . Looks like ES treats "." as special
character and during tokenization it is replaced with space.
I am thinking of using "not_analyzed" for strings that needn't be
tokenized. Do you recommend using cache with filters? In that case I assume
we'll loose all the updates unless the expiry is too short .
Thanks
George
On Wed, Mar 27, 2013 at 11:31 AM, Ivan Brusic ivan@brusic.com wrote:
Can you provide a few examples documents that are being matched but
should not be? The mapping would also be helpful.
Term queries are not analyzed, so they will only match exactly
(case sensitive) the token in the index. Also, if you do not need to have
your items ranked/score, it would be more efficient to have that query as a
filter instead.
But in the results , I am getting records that has "bi" = "qa". I am
supposed to get results which match "pl=728x90" AND that doesnt have
"bi=qa". Please let me know if I am doing something wrong.
Thanks
G
--
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.
Only filters are cached in Lucene since they are just bitsets. I have not
used a filtered query, so I don't know if it cached, but if the API has a
cache method, then it supports it.
Thanks Ivan. When we set cachable as true, are the results of the filter
also cached or just the filter query is cached. Can you please confirm.
I am using Java DSL for filter query and had to wrap with a constant score
(we dont need scoring) query to get the results. Does the below query
look fine?
Hi Ivan
Sorry for the delay. The issue turned out that we were using "." (eg :
xyz.1) in the searchable fields . Looks like ES treats "." as special
character and during tokenization it is replaced with space.
I am thinking of using "not_analyzed" for strings that needn't be
tokenized. Do you recommend using cache with filters? In that case I assume
we'll loose all the updates unless the expiry is too short .
Thanks
George
On Wed, Mar 27, 2013 at 11:31 AM, Ivan Brusic ivan@brusic.com wrote:
Can you provide a few examples documents that are being matched but
should not be? The mapping would also be helpful.
Term queries are not analyzed, so they will only match exactly
(case sensitive) the token in the index. Also, if you do not need to have
your items ranked/score, it would be more efficient to have that query as a
filter instead.
But in the results , I am getting records that has "bi" = "qa". I am
supposed to get results which match "pl=728x90" AND that doesnt have
"bi=qa". Please let me know if I am doing something wrong.
Thanks
G
--
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.
On Apr 5, 2013, at 12:20 PM, Ivan Brusic ivan@brusic.com wrote:
Only filters are cached in Lucene since they are just bitsets. I have not used a filtered query, so I don't know if it cached, but if the API has a cache method, then it supports it.
Thanks Ivan. When we set cachable as true, are the results of the filter also cached or just the filter query is cached. Can you please confirm.
I am using Java DSL for filter query and had to wrap with a constant score (we dont need scoring) query to get the results. Does the below query look fine?
{
Hi Ivan
Sorry for the delay. The issue turned out that we were using "." (eg : xyz.1) in the searchable fields . Looks like ES treats "." as special character and during tokenization it is replaced with space.
I am thinking of using "not_analyzed" for strings that needn't be tokenized. Do you recommend using cache with filters? In that case I assume we'll loose all the updates unless the expiry is too short .
Thanks
George
On Wed, Mar 27, 2013 at 11:31 AM, Ivan Brusic ivan@brusic.com wrote:
Can you provide a few examples documents that are being matched but should not be? The mapping would also be helpful.
Term queries are not analyzed, so they will only match exactly (case sensitive) the token in the index. Also, if you do not need to have your items ranked/score, it would be more efficient to have that query as a filter instead.
But in the results , I am getting records that has "bi" = "qa". I am supposed to get results which match "pl=728x90" AND that doesnt have "bi=qa". Please let me know if I am doing something wrong.
Thanks
G
--
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.
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.