indexing - Neo4j ' s cypher Query / Node by index lookup -


in data set there node has properties those

ex) node 4 name "personid_10" label "andrew"

and, among of nodes, half of them have both of 'name' , 'label' rest of them have 'name' property, , point important!

when built query this,

start n=node:nodes(name="personid_10") return n; 

i satisfied result of query.

but in other other case(use 'label' property)

start n=node:nodes(label="andrew") return n; 

couldn't result.

is there solution me?...

you can use lucene query 'or' on property keys:

start n=node:nodes('label:andrew name:personid_10') return n 

will have distinct in case duplicates


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -