Dear reader

I have queries of the following kind:

+( X )

- {!join from=parent_ids to=id}( X )

X is a {!graph query.

Is there a way to tell Solr to cache the result of "X" because the result is needed in the whole query again (within {!join...)?

example query (json):

{
   "query" : {
      "bool" : {
         "must" : [
            {
               "graph" : {
                  "from" : "id",
                  "query" : "fulltext_ocr_txtlarge:troja",
                  "to" : "parent_ids",
                  "useAutn" : "true"
               }
            }
         ],
         "must_not" : [
            {
               "join" : {
                  "from" : "parent_ids",
                  "query" : {
                     "bool" : {
                        "must" : [
                           {
                              "graph" : {
                                 "from" : "id",
                                 "query" : "fulltext_ocr_txtlarge:troja",
                                 "to" : "parent_ids",
                                 "useAutn" : "true"
                              }
                           }
                        ]
                     }
                  },
                  "to" : "id"
               }
            }
         ]
      }
   }
}

Kind regards,

Jochen


--
Jochen Barth * Universitätsbibliothek Heidelberg, IT * Telefon 06221 54-2580

Reply via email to