Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-03-2020 12:12 AM
I'm trying to implement an Apollo GraphQL query where I use filters to search for different sub-strings inside my type's fields. I want this filtering to be case-insensitive. How could I potentially achieve that?
I tried to implement it with Neo4j's built-in full-text search only to realise that filtering is then disabled and I need additional filtering to refine search results based on other non-text attributes of a type.
filter: {
AND: [
{ imgUrl_not: null },
{
OR: [
{ title_contains: searchQuery },
{ summary_contains: searchQuery },
{ subtitle_contains: searchQuery },
{ description_contains: searchQuery },
],
},
],
},
03-05-2020 07:53 PM
Anyone have ideas about this? I have the same question about case insensitive filtering. Thanks.
04-18-2020 03:49 AM
A little bump to see if there's any news regarding this.
11-20-2020 08:28 AM
in my experience filtering doesn't work AT ALL.
11-20-2020 10:27 AM
I'm not familiar with Neo4J and JS so this suggestion might not be so useful..., but do you know about:
Call tolower()
to the string expression that you're trying to match.
If you got a lot of nodes with the string property, consider creating a lowercase version of the strings you're searching on and add an index to the lower case version of the string.
All the sessions of the conference are now available online