Webadmin to add property and be available in index search

322 views
Skip to first unread message

Newbie

unread,
Apr 25, 2012, 8:55:09 AM4/25/12
to Neo4j
If somehow a node is missing an indexed property I need and I would
like to add this property to the node in Webadmin, how would I add the
value of this property to the index and have this node be searchable
via this indexed property value?

Thanks,

Mattias Persson

unread,
Apr 26, 2012, 2:26:03 AM4/26/12
to ne...@googlegroups.com
If you have configured auto indexing for the property key you're setting it will be indexed automatically. Otherwise you'll have to set and index it manually. I don't know how you do that through webadmin, but look here for how to do it via the REST API: http://docs.neo4j.org/chunked/milestone/rest-api.html

2012/4/25 Newbie <xia.in...@gmail.com>



--
Mattias Persson, [mat...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com

Michael Hunger

unread,
Apr 26, 2012, 3:36:44 AM4/26/12
to ne...@googlegroups.com
You can also use the neo4j-shell in webadmin to add nodes to indexes.

Notog Kim

unread,
Nov 26, 2012, 9:49:20 PM11/26/12
to ne...@googlegroups.com
hi michael,

Is there any documentation or can you give an example on how to do this? I have similar issues that I need to update some values manually via webadmin.

I am using SDN to define my node. Once an object is persisted, I want to change the value of an indexed property. Once changed via webadmin, I cannot find the node with the new value, but still can find it with the old indexed value. I believe it is because the index is not updated. My object is like this:

@NodeEntity
public class User {
   @GraphyId
   private Long id;
   @Indexed
   private String userId;
   ...
}

If I change an existing User node's "userId" property in webadmin, say from "notog" to "notog123", how do I re-index this node so that I can use the value "notog123" with the index to find this node. 

Much appreciated if you could provide some insight. The Neo4j version is 1.8.

Michael Hunger

unread,
Nov 26, 2012, 10:16:35 PM11/26/12
to ne...@googlegroups.com

Jim Webber

unread,
Mar 28, 2013, 9:35:40 AM3/28/13
to ne...@googlegroups.com
Hi,

If you're using Cypher then until 2.0 you won't be able to create indexes with it. Instead I suggest you configure auto indexes while you're learning Neo4j.

See:

http://docs.neo4j.org/chunked/milestone/auto-indexing.html#auto-indexing-config

Now when you create a node in Cypher you can have it indexed.

Jim

On 12 Mar 2013, at 16:34, hamid ghofrani <gho...@gmail.com> wrote:

> Hello Michael,
> Thanks for always posting useful notes. I am beginner with neo4j and am learning the shell/cypher . I am getting really frustrated with the indexing thing. Is there any example that shows how to index properties from the shell for example for the shakspear dataset? something like
> index --create ....
> 2-...
> I appreciate any help
> --
> 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+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Reply all
Reply to author
Forward
0 new messages