You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jochen Barth <ba...@ub.uni-heidelberg.de> on 2019/02/27 12:33:11 UTC

graph / boolean performance

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