Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EDIT: icontains case not covered when dealing with StringArrayProperties #235

Open
tonjo opened this issue Jan 22, 2014 · 2 comments
Open

Comments

@tonjo
Copy link
Contributor

tonjo commented Jan 22, 2014

Row 353 in query.py:

elif condition.operator in (OPERATORS.CONTAINS, OPERATORS.ICONTAINS):
    if isinstance(field._property, StringProperty):

EDIT:
The icontains check should cover the StringArrayProperty case.

Temporary workaround is quite easy: search the .lower() version of the string,
provided the StringArray contains lowercase strings.

@mhluongo
Copy link
Member

@tonjo when there's no index, this can be solved pretty easily in Cypher. Maybe icontains against an array property should always go straight to the Cypher case, instead of trying to be clever with index usage?

@tonjo
Copy link
Contributor Author

tonjo commented Feb 18, 2014

Not sure I understood this. Are you suggesting to solve it directly with a Cypher query?
Besides, field is indexed, and as workaround I'm cycling through the StringArray.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants