WildcardQueryBuilder and FieldQueryBuilder


(Samuel Doyle) #1

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

Thanks


(Shay Banon) #2

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 samueldoyle@gmail.com wrote:

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

Thanks


(Shay Banon) #3

Here is the issue:

On Mon, Jun 28, 2010 at 12:35 PM, Shay Banon
shay.banon@elasticsearch.comwrote:

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 samueldoyle@gmail.comwrote:

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

Thanks


(Samuel Doyle) #4

Yeah thanks

On Mon, Jun 28, 2010 at 2:36 AM, Shay Banon shay.banon@elasticsearch.comwrote:

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

On Mon, Jun 28, 2010 at 12:35 PM, Shay Banon <shay.banon@elasticsearch.com

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 samueldoyle@gmail.comwrote:

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

Thanks


(system) #5