it would work if you have a word like: "vvvvvvvvvvvvvvv(n)"

Am Donnerstag, 23. Oktober 2014 09:44:36 UTC+2 schrieb Gargoyle:
>
> Yes, I get that, but I do not get why "v*" does not work, since that is 
> "Word must start with 'v'"
>
>
>
> On Thursday, October 23, 2014 9:24:51 AM UTC+2, Ramy wrote:
>>
>> This is how regex works.
>> v = The word must start with the character "v"
>> . = Any character after "v"
>> * = Zero or more characters after "." till the end of the row
>>
>> Am Donnerstag, 23. Oktober 2014 08:27:24 UTC+2 schrieb Gargoyle:
>>>
>>> Hi,
>>>
>>> I have a index of documents, where all string fields are not_analyzed, 
>>> and when I try to query by regex filter, I get a weird results:
>>>
>>> { 
>>> "size" : 1,
>>> "query" : {
>>> "filtered" : {
>>>     "filter" : {
>>>         "regexp" : {
>>>             "name" : "v*" 
>>>             }
>>>         }
>>>     }
>>>     }
>>> }
>>>
>>> returns no documents, however
>>>
>>> { 
>>> "size" : 1,
>>> "query" : {
>>> "filtered" : {
>>>     "filter" : {
>>>         "regexp" : {
>>>             "name" : "v.*" 
>>>             }
>>>         }
>>>     }
>>>     }
>>> }
>>>
>>> works fine - the only difference being the regexp "v*" vs. "v.*". 
>>>
>>> Thanks for any suggestion
>>>
>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/4fa7fb2e-cbf2-4f75-876f-efa461040e2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to