Hi Jörg,

Thank you for your answer. Lots of new stuff in there though which will
require some studying to understand :) !

JSON-LD seems like an excellent addition to JSON which could actually mean
some competition for graph databases?!

I've tried to setup the following simple 2 dispenser, 2 disposable example
to support the JSON-LD data based on the example you gave me and the
resources I've found on the web so far (no namespace for rel though?):

{
 "_index": "catalog5",
 "_type": "product",
 "_id": "2",
 "_score": 1,
 "_source": {
    "@context": {
    "rel": ""
    },
    "@id": 2,
    "@type": "product",
    "description": "Brother TN-3230",
    "categories": [
    2
    ],
    "rel:hasDispenser": [
    1,
    4
    ]
 }
 },
 {
 "_index": "catalog5",
 "_type": "product",
 "_id": "1",
 "_score": 1,
 "_source": {
    "@context": {
    "rel": ""
    },
    "@id": 1,
    "@type": "product",
    "description": "Brother HL-5340",
    "categories": [
    1
    ],
    "rel:hasDisposable": [
    2,
    3
    ]
 }
 },
 {
 "_index": "catalog5",
 "_type": "product",
 "_id": "4",
 "_score": 1,
 "_source": {
    "@context": {
    "rel": ""
    },
    "@id": 4,
    "@type": "product",
    "description": "Brother HL-5350",
    "categories": [
    2
    ],
    "rel:hasDisposable": [
    2,
    3
    ]
 }
 },
 {
 "_index": "catalog5",
 "_type": "product",
 "_id": "3",
 "_score": 1,
 "_source": {
    "@context": {
    "rel": ""
    },
    "@id": 3,
    "@type": "product",
    "description": "Brother TN-3280",
    "categories": [
    2
    ],
    "rel:hasDispenser": [
    1,
    4
    ]
 }
}

So I'm now trying to wrap my head around the second part of your sentence
"... it is possible to lay aggregations of rel:hasDispenser and
rel:hasDisposable". For my use case I want to be able to use the attributes
for the hasDispenser relations for faceting. But that would mean actually
create a relation between the two documents. As far as I understood
aggregations are an improved concept of faceted search, but I don't see how
it can handle the relations I'm looking for...

I'm curious what kind of data you are using this concept for and if you are
willing to share an example with me?

Cheers,

Peter

2014-02-11 11:44 GMT+01:00 [email protected] <[email protected]>:

> I am using JSON-LD, which boils down to something like this
>
> {
>     ...
>     "_source" : {
>            "@context" : {  "rel" : "..." },
>            "@id" : 476,
>            "@type" : " .... ",
>            "description" : "Product description",
>            "a8" : "100 mm",
>            "a12" : "250 g",
>            "categories" : [ 8, 4213 ],
>            "rel:hasDispenser" : [
>                  "prod_id_x",
>                  "prod_id_y"
>            ],
>            "rel:hasDisposable" : [
>                  "prod_id_z"
>            ]
>     }
> }
>
> and it is possible to lay aggregations over rel:hasDispenser and
> rel:hasDisposable.
>
> Does this help?
>
> Jörg
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "elasticsearch" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/elasticsearch/AR80CGriVFQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEQccntkXvOANxLB7oaJ69j20LrutSLkOkpgJXj7HCiHQ%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAC%3DvprAMjNji4RarYbdCMOL4rv68XWUn56GNsBekXQAOSCXXMA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to