cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

Full text search on node property that include special characters

KD
Node

Hi, 

I want to be able to search for some properties that have some specials characters(#, !). The standard analyzer does not seem to work well for my use case can you suggest some analyzers that will work best. 

Node properties example:

{
"identity": 588,
"labels": [
"SYS"
],
"properties": {
"name": "&{}CIT-GE",
"psId": "1232"
}
}


 I want to be able to run some queries like the below.

call db.index.fulltext.queryNodes("TX_eucId_csiId_name_key","*#CIT*") yield node return node


thanks!

2 REPLIES 2

Cobra
Ninja
Ninja

Hello @KD 😊

I can't suggest any analyzer for you but you can get the full list with description and their stop words, maybe it can help you to choose. Otherwise, you will have to write your own analyzer.

CALL db.index.fulltext.listAvailableAnalyzers();

Regards,
Cobra

Thank you @Cobra . I will explore writing a custom analyzer.