We are trying to create an index having an analyzed multi value field
(filter used is n-gram). But we are not able to query the partial values.
But when we have single valued field for same filter everything is working
as expected, i.e able to retrieve partial query results as well.
Search query used and got some results as expected(this is entire string
match) curl "http://localhost:9200/xxx-test/_search" -d '{ "query": {
"match": {"url_domain": “a1b2c"} } }’
Search query used but didn’t give any results(this is a partial match) curl
"http://localhost:9200/xxx-test/_search" -d '{ "query": { "match":
{"url_domain": "1b2"} } }’ As the field is n gram analysed, we are
expecting a result for this query. Let us know if our understanding is
wrong?
We have a query with collection of dynamic terms eg: title:test AND
title:west AND desc:world AND desc:hello, now our objective is to avoid
terms in the query having document frequency > 10 within the specific
field. I.,e if title:west has df as 11 and desc:world has df 20, elastic
search should be internally changing the query to title:west AND
desc:hello, let us know if this can be done in effective way, as our search
queries are very high!
We are using ngram for prefix,suffix and fuzzy queries are there any
effective ways to store the index for the same?
On Wednesday, 18 February 2015 01:39:26 UTC+5:30, sri krishna wrote:
Hi,
Couple of questions:
We are trying to create an index having an analyzed multi value field
(filter used is n-gram). But we are not able to query the partial values.
But when we have single valued field for same filter everything is working
as expected, i.e able to retrieve partial query results as well.
Search query used and got some results as expected(this is entire string
match) curl "http://localhost:9200/xxx-test/_search" -d '{ "query": {
"match": {"url_domain": “a1b2c"} } }’
Search query used but didn’t give any results(this is a partial match)
curl "http://localhost:9200/xxx-test/_search" -d '{ "query": { "match":
{"url_domain": "1b2"} } }’ As the field is n gram analysed, we are
expecting a result for this query. Let us know if our understanding is
wrong?
We have a query with collection of dynamic terms eg: title:test AND
title:west AND desc:world AND desc:hello, now our objective is to avoid
terms in the query having document frequency > 10 within the specific
field. I.,e if title:west has df as 11 and desc:world has df 20, elastic
search should be internally changing the query to title:west AND
desc:hello, let us know if this can be done in effective way, as our search
queries are very high!
We are using ngram for prefix,suffix and fuzzy queries are there any
effective ways to store the index for the same?
On Wednesday, 18 February 2015 01:39:26 UTC+5:30, sri krishna wrote:
Hi,
Couple of questions:
We are trying to create an index having an analyzed multi value field
(filter used is n-gram). But we are not able to query the partial values.
But when we have single valued field for same filter everything is working
as expected, i.e able to retrieve partial query results as well.
Search query used and got some results as expected(this is entire string
match) curl "http://localhost:9200/xxx-test/_search" -d '{ "query": {
"match": {"url_domain": “a1b2c"} } }’
Search query used but didn’t give any results(this is a partial match)
curl "http://localhost:9200/xxx-test/_search" -d '{ "query": { "match":
{"url_domain": "1b2"} } }’ As the field is n gram analysed, we are
expecting a result for this query. Let us know if our understanding is
wrong?
We have a query with collection of dynamic terms eg: title:test AND
title:west AND desc:world AND desc:hello, now our objective is to avoid
terms in the query having document frequency > 10 within the specific
field. I.,e if title:west has df as 11 and desc:world has df 20, elastic
search should be internally changing the query to title:west AND
desc:hello, let us know if this can be done in effective way, as our search
queries are very high!
We are using ngram for prefix,suffix and fuzzy queries are there any
effective ways to store the index for the same?
On Wednesday, 18 February 2015 10:45:01 UTC+5:30, Masaru Hasegawa wrote:
Hi,
Check your mapping. url_domain is in object lists while documents/queries
use plain url_domain. So, standard analyser is used for the field.
Masaru
On February 18, 2015 at 12:30:23, sri krishna (krish...@gmail.com
<javascript:>) wrote:
any one faced same issue ?
On Wednesday, 18 February 2015 01:39:26 UTC+5:30, sri krishna wrote:
Hi,
Couple of questions:
We are trying to create an index having an analyzed multi value
field
(filter used is n-gram). But we are not able to query the partial
values.
But when we have single valued field for same filter everything is
working
as expected, i.e able to retrieve partial query results as well.
Search query used and got some results as expected(this is entire
string
match) curl "http://localhost:9200/xxx-test/_search" -d '{ "query": {
"match": {"url_domain": “a1b2c"} } }’
Search query used but didn’t give any results(this is a partial match)
curl "http://localhost:9200/xxx-test/_search" -d '{ "query": {
"match":
{"url_domain": "1b2"} } }’ As the field is n gram analysed, we are
expecting a result for this query. Let us know if our understanding is
wrong?
We have a query with collection of dynamic terms eg: title:test AND
title:west AND desc:world AND desc:hello, now our objective is to
avoid
terms in the query having document frequency > 10 within the specific
field. I.,e if title:west has df as 11 and desc:world has df 20,
elastic
search should be internally changing the query to title:west AND
desc:hello, let us know if this can be done in effective way, as our
search
queries are very high!
We are using ngram for prefix,suffix and fuzzy queries are there
any
effective ways to store the index for the same?
Forgot to point out. In the first email, you created xxxx-test index while indexing/querying against xxx-test index.
Make sure you use correct index name.
Ngram works regardless of single or multi valued field.
On Wednesday, 18 February 2015 10:45:01 UTC+5:30, Masaru Hasegawa wrote:
Hi,
Check your mapping. url_domain is in object lists while documents/queries
use plain url_domain. So, standard analyser is used for the field.
Masaru
On February 18, 2015 at 12:30:23, sri krishna (krish...@gmail.com
) wrote:
any one faced same issue ?
On Wednesday, 18 February 2015 01:39:26 UTC+5:30, sri krishna wrote:
Hi,
Couple of questions:
We are trying to create an index having an analyzed multi value
field
(filter used is n-gram). But we are not able to query the partial
values.
But when we have single valued field for same filter everything is
working
as expected, i.e able to retrieve partial query results as well.
Search query used and got some results as expected(this is entire
string
match) curl "http://localhost:9200/xxx-test/_search" -d '{ "query": {
"match": {"url_domain": “a1b2c"} } }’
Search query used but didn’t give any results(this is a partial match)
curl "http://localhost:9200/xxx-test/_search" -d '{ "query": {
"match":
{"url_domain": "1b2"} } }’ As the field is n gram analysed, we are
expecting a result for this query. Let us know if our understanding is
wrong?
We have a query with collection of dynamic terms eg: title:test AND
title:west AND desc:world AND desc:hello, now our objective is to
avoid
terms in the query having document frequency > 10 within the specific
field. I.,e if title:west has df as 11 and desc:world has df 20,
elastic
search should be internally changing the query to title:west AND
desc:hello, let us know if this can be done in effective way, as our
search
queries are very high!
We are using ngram for prefix,suffix and fuzzy queries are there
any
effective ways to store the index for the same?
We have a live query terms the query will be for eg: title:test AND
title:west AND desc:world AND desc:hello, now our objective is to avoid
terms in the query having document frequency > 10 within the specific
field. i.,e if title:west has df as 11 and desc:world has df 20, elastic
search should be internally changing the query to title:west AND
desc:hello, let us know if this can be done in effective way, as our search
queries are very high in number!
We are trying to create an index having an analyzed multi value field
(filter used is n-gram). But we are not able to query the partial values.
But when we have single valued field for same filter everything is working
as expected, i.e able to retrieve partial query results as well.
Search query used and got some results as expected(this is entire string
match) curl "http://localhost:9200/xxx-test/_search" -d '{ "query": {
"match": {"url_domain": “a1b2c"} } }’
Search query used but didn’t give any results(this is a partial match)
curl "http://localhost:9200/xxx-test/_search" -d '{ "query": { "match":
{"url_domain": "1b2"} } }’ As the field is n gram analysed, we are
expecting a result for this query. Let us know if our understanding is
wrong?
We have a query with collection of dynamic terms eg: title:test AND
title:west AND desc:world AND desc:hello, now our objective is to avoid
terms in the query having document frequency > 10 within the specific
field. I.,e if title:west has df as 11 and desc:world has df 20, elastic
search should be internally changing the query to title:west AND
desc:hello, let us know if this can be done in effective way, as our search
queries are very high!
We are using ngram for prefix,suffix and fuzzy queries are there any
effective ways to store the index for the same?
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.