Hi Michael,

Did anything happen with this in the end?  I'm not seeing indexes on the 
individual keys (e.g. "metadata-phone") just the index on the main property 
itself (e.g. "metadata") using SDN 3.1.0.RELEASE.  

I'm trying to identify a way to drive a search web-ui with the fields 
driven by the indexed properties for a particular label.  The indexes 
seemed like a good hook in, but without the indexes for the dynamic 
properties being listed via the 
database.schema().getIndexes();
that's not going to work.

Would you have any other suggestions?

Many thanks,

Dave


On Monday, February 11, 2013 8:50:59 AM UTC, Michael Hunger wrote:
>
> Hi,
>
> right now indexing of dynamic properties is not supported yet, can you 
> please raise a JIRA issue.
>
> I can try to get it into 2.2.0-RELASE but cannot promise.
>
> A bigger problem is: if I indexed a dynamic property-field what are the 
> semantics of:
>
> - looking up a single property-value of that collection
> - looking up the whole collection
> - What if someone defines a unique index on those? What are the semantics 
> then, Should that be forbidden, etc.
>   - there is already a similar issue with array properties which are 
> indexed by neo4j one by one, for lookup you cannot pass in the array but 
> only one of the entries
>   - but the semantics for uniqueness are not really defined.
>
> Michael
>
> On Friday, February 8, 2013 7:32:39 PM UTC+1, Dorin Scutarasu wrote:
>>
>> I'm using 
>> http://static.springsource.org/spring-data/data-graph/snapshot-site/apidocs/org/springframework/data/neo4j/fieldaccess/DynamicProperties.html
>>  to 
>> add a Map-like property in my node entity.
>>
>> My Code looks like this:
>>
>> @NodeEntity public class Person {
>>     @Indexed(indexType = IndexType.SIMPLE)
>>     private DynamicProperties customProps;
>>     [...]
>> }
>>
>> If I persist a Person object with a dynamic property foo=bar, the node 
>> that is created has a property named "customProperty-bar" with value "bar".
>>
>> I can't seem to query the index using Cypher though:
>>
>> neo4j-sh (0)$ start n=node:Person(customProps-foo="bar) return n;
>> ==> SyntaxException: `=` expected
>> ==> "start n=node:Person(customProps-foo="bar") return n"
>> ==>                                 ^
>>
>> Is there any workaround for this problem?
>>
>> I'm using spring-data-neo4j 2.1.0-RELEASE and running Neo4j 1.8 in 
>> embedded mode.
>>
>> Cheers,
>> Dorin
>>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to