[Neo4j] Cypher queries on full text indexes?

Michael Hunger michael.hunger at neotechnology.com
Wed Oct 5 21:33:36 CEST 2011


Cypher also supports index queries:

start n = (nodefull, "name:abc*") return n

Cheers

Michael
 
Am 05.10.2011 um 21:28 schrieb tpp+neo4j at iki.fi:

> Looks like Cypher queries with index lookups are only matching nodes
> with the exact field value.
> 
> Is this by design? This is with 1.1.0.RELEASE version of Spring Data
> Graph, and using the Neo4J console with v1.4.1. I'm running Neo4J in
> the REST server setup.
> 
> I have a field called name on an NodeEntity full text indexed into
> index named nodefull.
> 
> I create a NodeEntity with name = "abc def ghi"
> 
> If I open the Lucene index with Luke, I see that the field is properly
> tokenized.
> 
> Two cypher queries:
> 
> start n = (nodefull, name, 'abc def ghi') return n # returns the right node
> 
> start n (nodefull, name, 'abc' return n # returns nothing
> 
> -TPP
> 
> _______________________________________________
> Neo4j mailing list
> User at lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user



More information about the User mailing list