Full text search : search phrase in text

Hi
i am using elasticsearch for storing some text fields.
while using white space tokenizer , the text is divided into tokens based
on the white space separation between them , and is searchable by token
based search only .

but , m not able to do some phrase search , like i am indexing ,
" ELASTIC SERVER FULL TEXT SEARCH"
i am able to search for any of the tokens in the above text , but not on
any continuous phrase like, "ELASTIC SERVER" .

which , analyzer(tokenizer /tokenfilter) combination should be used to
search for a phrase in the full text search.
Could somebody please help me resolve the issue ?

Thanks
Tarang Dawer

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

i have tried using the field query , but it returns results based on token
match ,
like for example , i have documents like "1. THIS IS ELASTICSEARCH"
"ELASTICSEARCH IS AWESOME"

if i search for IS ELASTICSEARCH , both of my documents are returned as a
search hit .

is there some way , or elasticsearch/lucene stores/maintains a certain
positioning or ordering system , so that only THIS IS ELASTICSEARCH is
returned ?

Also please suggest tokenizer/analyzer for the document , to be searchable
in this way ?

Thanks
Tarang Dawer

On Mon, May 27, 2013 at 6:09 PM, Tarang Dawer tarang.dawer@gmail.comwrote:

Hi
i am using elasticsearch for storing some text fields.
while using white space tokenizer , the text is divided into tokens based
on the white space separation between them , and is searchable by token
based search only .

but , m not able to do some phrase search , like i am indexing ,
" ELASTIC SERVER FULL TEXT SEARCH"
i am able to search for any of the tokens in the above text , but not on
any continuous phrase like, "ELASTIC SERVER" .

which , analyzer(tokenizer /tokenfilter) combination should be used to
search for a phrase in the full text search.
Could somebody please help me resolve the issue ?

Thanks
Tarang Dawer

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

There are quite a few options but the easiest is to use the Match phrase
query: http://www.elasticsearch.org/guide/reference/query-dsl/match-query/

Thanks,
Matt Weber

On Mon, May 27, 2013 at 8:30 AM, Tarang Dawer tarang.dawer@gmail.comwrote:

i have tried using the field query , but it returns results based on token
match ,
like for example , i have documents like "1. THIS IS ELASTICSEARCH"
"ELASTICSEARCH IS AWESOME"

if i search for IS ELASTICSEARCH , both of my documents are returned as a
search hit .

is there some way , or elasticsearch/lucene stores/maintains a certain
positioning or ordering system , so that only THIS IS ELASTICSEARCH is
returned ?

Also please suggest tokenizer/analyzer for the document , to be searchable
in this way ?

Thanks
Tarang Dawer

On Mon, May 27, 2013 at 6:09 PM, Tarang Dawer tarang.dawer@gmail.comwrote:

Hi
i am using elasticsearch for storing some text fields.
while using white space tokenizer , the text is divided into tokens based
on the white space separation between them , and is searchable by token
based search only .

but , m not able to do some phrase search , like i am indexing ,
" ELASTIC SERVER FULL TEXT SEARCH"
i am able to search for any of the tokens in the above text , but not on
any continuous phrase like, "ELASTIC SERVER" .

which , analyzer(tokenizer /tokenfilter) combination should be used to
search for a phrase in the full text search.
Could somebody please help me resolve the issue ?

Thanks
Tarang Dawer

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hi Matt
Thanks for the speedy response . i 'll go through the link you provided ,
and get back to you
could you also please elaborate the "other options" ?

Thanks
Tarang Dawer

On Mon, May 27, 2013 at 9:14 PM, Matt Weber matt.weber@gmail.com wrote:

There are quite a few options but the easiest is to use the Match phrase
query:
http://www.elasticsearch.org/guide/reference/query-dsl/match-query/

Thanks,
Matt Weber

On Mon, May 27, 2013 at 8:30 AM, Tarang Dawer tarang.dawer@gmail.comwrote:

i have tried using the field query , but it returns results based on
token match ,
like for example , i have documents like "1. THIS IS ELASTICSEARCH"
"ELASTICSEARCH IS AWESOME"

if i search for IS ELASTICSEARCH , both of my documents are returned as a
search hit .

is there some way , or elasticsearch/lucene stores/maintains a certain
positioning or ordering system , so that only THIS IS ELASTICSEARCH is
returned ?

Also please suggest tokenizer/analyzer for the document , to be
searchable in this way ?

Thanks
Tarang Dawer

On Mon, May 27, 2013 at 6:09 PM, Tarang Dawer tarang.dawer@gmail.comwrote:

Hi
i am using elasticsearch for storing some text fields.
while using white space tokenizer , the text is divided into tokens
based on the white space separation between them , and is searchable by
token based search only .

but , m not able to do some phrase search , like i am indexing ,
" ELASTIC SERVER FULL TEXT SEARCH"
i am able to search for any of the tokens in the above text , but not on
any continuous phrase like, "ELASTIC SERVER" .

which , analyzer(tokenizer /tokenfilter) combination should be used to
search for a phrase in the full text search.
Could somebody please help me resolve the issue ?

Thanks
Tarang Dawer

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

You can use a QueryStringQuery with a quoted phrase in the query string or
you can enable the auto_generate_phrase_queries option. There are some
indexing techniques using Shingles as well but that is overkill for what
you want to do.

Thanks,
Matt Weber

On Mon, May 27, 2013 at 9:05 AM, Tarang Dawer tarang.dawer@gmail.comwrote:

Hi Matt
Thanks for the speedy response . i 'll go through the link you provided ,
and get back to you
could you also please elaborate the "other options" ?

Thanks
Tarang Dawer

On Mon, May 27, 2013 at 9:14 PM, Matt Weber matt.weber@gmail.com wrote:

There are quite a few options but the easiest is to use the Match phrase
query:
http://www.elasticsearch.org/guide/reference/query-dsl/match-query/

Thanks,
Matt Weber

On Mon, May 27, 2013 at 8:30 AM, Tarang Dawer tarang.dawer@gmail.comwrote:

i have tried using the field query , but it returns results based on
token match ,
like for example , i have documents like "1. THIS IS ELASTICSEARCH"
"ELASTICSEARCH IS AWESOME"

if i search for IS ELASTICSEARCH , both of my documents are returned as
a search hit .

is there some way , or elasticsearch/lucene stores/maintains a certain
positioning or ordering system , so that only THIS IS ELASTICSEARCH is
returned ?

Also please suggest tokenizer/analyzer for the document , to be
searchable in this way ?

Thanks
Tarang Dawer

On Mon, May 27, 2013 at 6:09 PM, Tarang Dawer tarang.dawer@gmail.comwrote:

Hi
i am using elasticsearch for storing some text fields.
while using white space tokenizer , the text is divided into tokens
based on the white space separation between them , and is searchable by
token based search only .

but , m not able to do some phrase search , like i am indexing ,
" ELASTIC SERVER FULL TEXT SEARCH"
i am able to search for any of the tokens in the above text , but not
on any continuous phrase like, "ELASTIC SERVER" .

which , analyzer(tokenizer /tokenfilter) combination should be used to
search for a phrase in the full text search.
Could somebody please help me resolve the issue ?

Thanks
Tarang Dawer

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.