Yep, it's already been added in javadoc in the trunk! 2010/2/12 Thomas Andersson <greddbul...@gmail.com>: > Hi, > > Thanks for the quick reply! That works beautifully for us. > > Maybe I could suggest that the javadoc be updated to reflect this? > Because there's a world of difference between comparing using equals > and toString(). > > Best regards, > Thomas > > On Fri, Feb 12, 2010 at 11:43 AM, Mattias Persson > <matt...@neotechnology.com> wrote: >> Yep the answer is simple, it does a .toString() on the object and >> stores that string (since Lucene handles only strings as values). And >> when calling getNodes() it matches your suppliedValue.toString() with >> the values stored in lucene. >> >> Are you satisfied with that answer? I can imagine that in some remote >> case this (string conversion) could be a problem, but it works great >> for the majority of users using it. >> >> 2010/2/12 Thomas Andersson <greddbul...@gmail.com>: >>> Hi, >>> >>> I have just started to use neo4j and so far I really like it, but I >>> have a question about the IndexService interface. >>> >>> When indexing you provide a key of type String and a value of type Object. >>> >>> When doing lookup, you provide a value Object to look for to match >>> with the indexed value object. How is the matching done? Is there a >>> comparison of value objects using Object.equals, or what constitutes a >>> match? >>> >>> Also, since the index can be persisted to the file system, the value >>> objects must also be persisted. I am a little confused that there is >>> no requirement that the value object must be serializable or something >>> like that. >>> >>> Any thoughts on this? >>> >>> Best Regards, >>> Thomas >>> _______________________________________________ >>> Neo mailing list >>> User@lists.neo4j.org >>> https://lists.neo4j.org/mailman/listinfo/user >>> >> >> >> >> -- >> Mattias Persson, [matt...@neotechnology.com] >> Neo Technology, www.neotechnology.com >> _______________________________________________ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > _______________________________________________ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user >
-- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com _______________________________________________ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user