Re: [Neo4j] REST indexes questions

2011-04-14 Thread Peter Neubauer
Javier,
great work with the Python bindings! I can't answer for all of the
questions, but trying inline. I think the core guys might have some
more insights here.

On Wed, Apr 13, 2011 at 9:46 PM, Javier de la Rosa ver...@gmail.com wrote:
 Hi all, at first congratulations for the new GA release of Neo4j.
 Really great job.

 I'm now developing the support for indexes and I have changed a bit
 the compatibility with neo4j.py due to currently it doesn't work with
 nodes indexes neither relationships indexes.
 But I have some related questions:
 1. How can I remove an index?
Removing an index is a good catch, I don't think there is a method for
completely removing an Index right now. We should add that for 1.4
since this is really a bug in the API unless I am missing something
here.

 2. Would it be possible, when I get the info of a node, also provide
 the indexes in which the node has been indexed?
Not really, as Indicies are independent XA resources from the kernel.
You can loop through the existing indexes and check if the node is in
there, but I imagine that is a costly operation. Mattias, is there any
easy way to do this? If yes, we could add it as an extension or
directly into the Node-representation I think.

 3. What it happens if I remove a node that it's already indexed? Is it
 removed from the index too?
Same here. If you don't include a node-removal from the index in the
same transaction, the index is going to be stale. All of the above
behaviors are target for an auto-index feature that would help you
with this - also for 1.4 planned.

 4. What's the real difference between the query exact method and the
 advanced query? I mean, using only the advanced query, are you able to
 query in exact mode?
It is referring to the exposure of the get vs. query interface of the
Index API, see 
http://components.neo4j.org/neo4j/1.3/apidocs/org/neo4j/graphdb/index/Index.html
.


Thanks so much for the feedback! This is very valuable input for the
next cycles. Keep it coming Javier!

/peter
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] REST indexes questions

2011-04-14 Thread Javier de la Rosa
Thank you, Peter. It's gonna be exciting the future version 1.4 :-)

On Thu, Apr 14, 2011 at 16:33, Peter Neubauer
peter.neuba...@neotechnology.com wrote:
 Javier,
 great work with the Python bindings! I can't answer for all of the
 questions, but trying inline. I think the core guys might have some
 more insights here.

 On Wed, Apr 13, 2011 at 9:46 PM, Javier de la Rosa ver...@gmail.com wrote:
 Hi all, at first congratulations for the new GA release of Neo4j.
 Really great job.

 I'm now developing the support for indexes and I have changed a bit
 the compatibility with neo4j.py due to currently it doesn't work with
 nodes indexes neither relationships indexes.
 But I have some related questions:
 1. How can I remove an index?
 Removing an index is a good catch, I don't think there is a method for
 completely removing an Index right now. We should add that for 1.4
 since this is really a bug in the API unless I am missing something
 here.

 2. Would it be possible, when I get the info of a node, also provide
 the indexes in which the node has been indexed?
 Not really, as Indicies are independent XA resources from the kernel.
 You can loop through the existing indexes and check if the node is in
 there, but I imagine that is a costly operation. Mattias, is there any
 easy way to do this? If yes, we could add it as an extension or
 directly into the Node-representation I think.

 3. What it happens if I remove a node that it's already indexed? Is it
 removed from the index too?
 Same here. If you don't include a node-removal from the index in the
 same transaction, the index is going to be stale. All of the above
 behaviors are target for an auto-index feature that would help you
 with this - also for 1.4 planned.

 4. What's the real difference between the query exact method and the
 advanced query? I mean, using only the advanced query, are you able to
 query in exact mode?
 It is referring to the exposure of the get vs. query interface of the
 Index API, see 
 http://components.neo4j.org/neo4j/1.3/apidocs/org/neo4j/graphdb/index/Index.html
 .


 Thanks so much for the feedback! This is very valuable input for the
 next cycles. Keep it coming Javier!

 /peter




-- 
Javier de la Rosa
http://versae.es
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] REST indexes questions

2011-04-14 Thread Michael Hunger
1. Removing an index is not exposed, possible to add with a server 
plugin/extension.
2. One can easily store the index-names as node properties with the indexing 
operation - that's also something that could be automated via an server plugin.
3. Same goes for auto removal, btw. it is also necessary for relationships, so 
perhaps an operation removing a node and its relationships (and all of those 
from their indexes) would be sensible.
4. Query exact is looking for the exact match, Advanced Query takes also lucene 
query strings and partial matches like (Matr*), for advanced-query fulltext 
matches the values must have been indexed on a fulltext index.

It should be a matter of a few hours of coding to provide a server plugin that 
does the above. 

Cheers

Michael

Am 13.04.2011 um 21:46 schrieb Javier de la Rosa:

 Hi all, at first congratulations for the new GA release of Neo4j.
 Really great job.
 
 I'm now developing the support for indexes and I have changed a bit
 the compatibility with neo4j.py due to currently it doesn't work with
 nodes indexes neither relationships indexes.
 But I have some related questions:
 1. How can I remove an index?
 2. Would it be possible, when I get the info of a node, also provide
 the indexes in which the node has been indexed?
 3. What it happens if I remove a node that it's already indexed? Is it
 removed from the index too?
 4. What's the real difference between the query exact method and the
 advanced query? I mean, using only the advanced query, are you able to
 query in exact mode?
 
 -- 
 Javier de la Rosa
 http://versae.es
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] REST indexes questions

2011-04-14 Thread Javier de la Rosa
Thank you very much for the aclarations, Michael.

Regards!

On Thu, Apr 14, 2011 at 18:55, Michael Hunger
michael.hun...@neotechnology.com wrote:
 1. Removing an index is not exposed, possible to add with a server 
 plugin/extension.
 2. One can easily store the index-names as node properties with the indexing 
 operation - that's also something that could be automated via an server 
 plugin.
 3. Same goes for auto removal, btw. it is also necessary for relationships, 
 so perhaps an operation removing a node and its relationships (and all of 
 those from their indexes) would be sensible.
 4. Query exact is looking for the exact match, Advanced Query takes also 
 lucene query strings and partial matches like (Matr*), for advanced-query 
 fulltext matches the values must have been indexed on a fulltext index.

 It should be a matter of a few hours of coding to provide a server plugin 
 that does the above.

 Cheers

 Michael

 Am 13.04.2011 um 21:46 schrieb Javier de la Rosa:

 Hi all, at first congratulations for the new GA release of Neo4j.
 Really great job.

 I'm now developing the support for indexes and I have changed a bit
 the compatibility with neo4j.py due to currently it doesn't work with
 nodes indexes neither relationships indexes.
 But I have some related questions:
 1. How can I remove an index?
 2. Would it be possible, when I get the info of a node, also provide
 the indexes in which the node has been indexed?
 3. What it happens if I remove a node that it's already indexed? Is it
 removed from the index too?
 4. What's the real difference between the query exact method and the
 advanced query? I mean, using only the advanced query, are you able to
 query in exact mode?

 --
 Javier de la Rosa
 http://versae.es
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user




-- 
Javier de la Rosa
http://versae.es
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user