3

Using version 1.9 of neo4j community, I have tried index querying with the small "Cineast" dataset and with the "Matrix" dataset. In the webadmin interface, the Cineasts set has an index called Actor.

START n=node:Actor("name:*") RETURN n;

This should return all actors' names, right? I get no error message, but zero rows.

I know there is an Actor named Paul Norell in there, so I try this but still get the same results.

START n=node:Actor(name="Paul Norell") RETURN n;

Any ideas on what I'm doing wrong? How do I check that the name key/value pair is indexed, or even which ones are in the index?

1
  • I'm having the same problem, always return 0 by where specify the name Commented Jan 5, 2013 at 11:13

2 Answers 2

4

As answered in the google group:

Actor.name is not indexed in that dataset.

just Actor.id and Movie.id and there is a "search" index for movie titles.

START n=node:Actor('id:*') RETURN count(*);

START n=node:Movie('id:*') RETURN count(*);
START n=node:Movie(id="601") RETURN n;

START n=node:search('title:*') RETURN count(*);
Sign up to request clarification or add additional context in comments.

Comments

0
START n=node:Actor(name="Paul Norell") RETURN n;

name="Paul Norell" is a property of node you index in Actor. But the query goes right when you find with key and value of index indexing node.

Eg : when you index node x in Actor with key and value is : name="Paul Norell", your query is right! Note: key & value when you indexing

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.