I think that indexing values other than strings are impossible through the
REST API and that's a known shortcoming I hope will be fixed pretty soon.
Creating a support discussion for this.

2011/7/13 Aseem Kishore <aseem.kish...@gmail.com>

> Oh man, having the index automatically handle arrays and index each value
> separately sounds killer. Any pointers on how to do this via the REST API?
> Still not clear to me what format URL I should be using.
>
> Thanks!
>
> Aseem
>
> On Wed, Jul 13, 2011 at 5:50 PM, Mattias Persson
> <matt...@neotechnology.com>wrote:
>
> > 2011/7/13 Michael Hunger <michael.hun...@neotechnology.com>
> >
> > > Indexed values are actually not bound to be properties.
> > >
> > > The index framework just calls toString() on indexed values that are
> not
> > > ValueContexts.
> > >
> > > So you should find a suitable representation of your arrays (e.g. a
> comma
> > > separated list or a json array string) if you want to lookup them. And
> > then
> > > index that representation.
> > >
> >
> > Although if your object is some kind of array it will index all array
> items
> > separately, so that each of them is query:able individually.
> >
> > >
> > > Cheers
> > >
> > > Michael
> > >
> > > Am 13.07.2011 um 23:39 schrieb Aseem Kishore:
> > >
> > > > I just learned that node/relationship property values can be arrays
> of
> > > > primitives, not just primitives.
> > > >
> > > > That's pretty cool, but I'm wondering, how does this work (if it does
> > > work)
> > > > with indexing and lookups? I'm referring to the REST API.
> > > >
> > > > E.g. if the URL is:
> > > >
> > > > GET /index/node/my_nodes/the_key/the_value
> > > >
> > > > What should I be putting in for "the_value"? I don't think it should
> be
> > > > URL-encoded JSON, because for simple strings, quotes don't go into
> the
> > > URL.
> > > > So is this even possible?
> > > >
> > > > Help appreciated! Thanks much.
> > > >
> > > > Aseem
> > > > _______________________________________________
> > > > 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
> > >
> >
> >
> >
> > --
> > Mattias Persson, [matt...@neotechnology.com]
> > Hacker, Neo Technology
> > www.neotechnology.com
> > _______________________________________________
> > 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
>



-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to