Sambhodi,
I am not really sure, this is Michaels domain. But from looking at the
core API, I am saying that

>        @Indexed(indexName = "product-search")
and
>        @Indexed(indexName = "product-search", fulltext=true)

Should end up in different indexes, while

>        @Indexed(indexName = "product-search")
>        @Indexed(indexName = "product-search")

might be in the same index. So from the outside look, you can do
compound queries on indexes that have the same name and the same
config.

As stated, don't take this for a fact! Michael?

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Wed, Aug 24, 2011 at 3:49 PM, sambodhi <[email protected]> wrote:
> Thanks for the prompt Peter!
> I got bit jumbled up there. Are you saying that SDG's core api does not
> allow to index same node with different KEYS? Or it does not allow same node
> to be in different INDICES?
>
> In my case my entity looks like this:
> @NodeEntity
> public class Product {
>        @Indexed(indexName = "product-search", fulltext=true)
>        String name;
>        @Indexed(indexName = "product-search")
>        int expectedAmount;
>        @Indexed(indexName = "product-search", fulltext=true)
>        String details;
>        ...
> }
>
> and when I query across these keys, it is giving me correct results. But for
> this I used org.neo4j.graphdb.index.Index and not SDG supported apis. In
> short I am using SDG's annotation to index (and I index same node to
> multiple keys), but I search using neo4j core API's. I wasn't sure if this
> the right way to do it. Sorry if I am messing around search terminology, my
> search knowledge is limited so far :(
>
>
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-compound-query-across-keys-tp3280897p3281008.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to