WildcardQueryBuilder and FieldQueryBuilder

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

WildcardQueryBuilder and FieldQueryBuilder

Samuel Doyle
Out of curiosity why does FieldQueryBuilder allow leading wildcards while the WildcardQueryBuilder does not?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: WildcardQueryBuilder and FieldQueryBuilder

kimchy
Administrator
Had a look at field query handling, and it was missing proper handling of `allow_leading_wildcards` parameter. So, field query was not allowing leading wildcards regardless of what you placed in the builder. Is that what you meant? wildcard query should allow for leading wildcards.

-shay.banon

On Mon, Jun 28, 2010 at 5:19 AM, Samuel Doyle <[hidden email]> wrote:
Out of curiosity why does FieldQueryBuilder allow leading wildcards while the WildcardQueryBuilder does not?

Thanks

Reply | Threaded
Open this post in threaded view
|

Re: WildcardQueryBuilder and FieldQueryBuilder

kimchy
Administrator
Here is the issue: http://github.com/elasticsearch/elasticsearch/issues/issue/236

On Mon, Jun 28, 2010 at 12:35 PM, Shay Banon <[hidden email]> wrote:
Had a look at field query handling, and it was missing proper handling of `allow_leading_wildcards` parameter. So, field query was not allowing leading wildcards regardless of what you placed in the builder. Is that what you meant? wildcard query should allow for leading wildcards.

-shay.banon


On Mon, Jun 28, 2010 at 5:19 AM, Samuel Doyle <[hidden email]> wrote:
Out of curiosity why does FieldQueryBuilder allow leading wildcards while the WildcardQueryBuilder does not?

Thanks


Reply | Threaded
Open this post in threaded view
|

Re: WildcardQueryBuilder and FieldQueryBuilder

Samuel Doyle
Yeah thanks

On Mon, Jun 28, 2010 at 2:36 AM, Shay Banon <[hidden email]> wrote:
Here is the issue: http://github.com/elasticsearch/elasticsearch/issues/issue/236


On Mon, Jun 28, 2010 at 12:35 PM, Shay Banon <[hidden email]> wrote:
Had a look at field query handling, and it was missing proper handling of `allow_leading_wildcards` parameter. So, field query was not allowing leading wildcards regardless of what you placed in the builder. Is that what you meant? wildcard query should allow for leading wildcards.

-shay.banon


On Mon, Jun 28, 2010 at 5:19 AM, Samuel Doyle <[hidden email]> wrote:
Out of curiosity why does FieldQueryBuilder allow leading wildcards while the WildcardQueryBuilder does not?

Thanks