This should actually work. Which version are you using?
either this: START n=node:node_auto_index(name="Chicago") RETURN n;
or START n=node:node_auto_index("name:Chicago") RETURN n;
To search across all fields (which you need to have configured, you would
replace the field-name with a star *.
START n=node:node_auto_index("*:Chicago") RETURN n;
On Thu, Jan 5, 2017 at 6:38 AM, Anthony Wong <[email protected]> wrote:
> I have question on full text search using neo4j. Followed the instruction
> in the webpage, i enabled the full text search.
>
>
> Full Text Search Guide
> <https://maxdemarzi.com/2016/11/30/enabling-legacy-automatic-full-text-search-on-neo4j-3-x/>
>
>
> CREATE (p:Place {name:"Chicago"})
>
> 1) Run the command: START n=node:node_auto_index("name:*C*") RETURN n;
> Result:
> +------------------------------+
> | n |
> +------------------------------+
> | Node[65263]{name:"Chicago"} |
> +------------------------------+
> 1 rows
>
> 2) Run the command: START n=node:node_auto_index("name:Chicago") RETURN n;
> Result:
> +---+
> | n |
> +---+
> +---+
> 0 row
>
> 3) START n=node:node_auto_index("name=Chicago") RETURN n;
> Result:
> null
>
> My question is: How can modify the search (2) START
> n=node:node_auto_index("name:Chicago") RETURN n; or START
> n=node:node_auto_index("name:Ch*") RETURN n; to give the result *Chicago*
> ?
>
>
> Also, would we not specify the field name in the command, (i.e. search all
> fields which contains "Chicago" keyword in all nodes) ?
>
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.