Re: [Neo4j] Re: Index creation and query

2016-03-11 Thread Clark Richey
If you created the index after you loaded the nodes then I don't believe they 
are indexed. You would either have to reload or use the java API to manually 
add the nodes to the index. 

You can confirm this by running a profile (add the keyword profile to the 
beginning of your query) and sharing the results. 



Sent from my iPhone

> On Mar 11, 2016, at 19:24, Hugo Labra  wrote:
> 
> Hi, 
> 
> I tried to create the index with the CREATE INDEX ON :Node(name)
> Cypher command, but it does not make any difference on the time of the query
> I have a graph with about 70 million edges and 4 million nodes, the creation 
> of 
> the index is instantaneous, but the query times are the same before and after 
> :(
> 
> I am doing the following queries, they return the result but they don't 
> improve with the index
> 
> MATCH (n:Node{ name: 'v14' })
> RETURN n
> 
> and 
> 
> MATCH (n:Node)
> WHERE n.name = 'v14'
> RETURN n
> 
> Thanks in advance for your help
> Hugo 
> 
> 
>> On Friday, March 11, 2016 at 2:26:34 PM UTC-6, Hugo Labra wrote:
>> Hello, 
>> 
>> I am trying to create an index but I have not been able to get results back 
>> when I query it.
>> 
>> Hugo
> 
> -- 
> 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 neo4j+unsubscr...@googlegroups.com.
> 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 neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] Re: Index creation and query

2016-03-11 Thread Clark Richey
Your queries aren’t in the correct format. I strongly recommend you start with 
this excellent, free tutorial: 
http://neo4j.com/graphacademy/online-course-getting-started/



> On Mar 11, 2016, at 5:03 PM, Hugo Labra  wrote:
> 
> Hi Clark,
> 
> I tried several things, I was trying to load a graph and create a text index 
> but apparently I haven't been able to.
> I tried using the node_auto_indexing=true and key names properties in the 
> .conf file before doing the load using neo4j-importer, 
> and also "index --create node_auto_index -t Node" in the shell after the data 
> is loaded, but they doesn't seem to work...
> This creates and index, but it appears to be empty because I have not been 
> able to run a query with a wildcard.
> 
> I loaded my graph following this documentation, and reloaded it after 
> modifying the conf file:
> http://neo4j.com/docs/stable/import-tool-examples.html#import-tool-property-types-example
> 
> I have found some documentation, all of it is similar to the one on this 
> page, but I haven't succeeded after following those steps:
> http://stackoverflow.com/questions/12877678/neo4j-step-by-step-to-create-an-automatic-index
> http://jexp.de/blog/2015/04/on-neo4j-indexes-match-merge/
> 
> The query I am trying to execute is like the following:
> 
> neo4j-sh (?)$ START n=node:node_auto_index(name="v22")
> >  return n
> >  limit 10;
> +---+
> | n |
> +---+
> +---+
> 
> 
> Also I tried the CREATE INDEX ON :Node(name)
> on Cypher but I have the same problem when I run queries trying to find
> some nodes that I know are there the results are empty, even for exact matches
> without the wildcard. Is this a text index or btree or what type of index?
> 
> 
> Thanks in advance for your help.
> Hugo
> 
> 
> On Friday, March 11, 2016 at 2:26:34 PM UTC-6, Hugo Labra wrote:
> Hello, 
> 
> I am trying to create an index but I have not been able to get results back 
> when I query it.
> 
> Hugo
> 
> -- 
> 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 neo4j+unsubscr...@googlegroups.com 
> .
> 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 neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.