lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Barth <ba...@ub.uni-heidelberg.de>
Subject graph / boolean performance
Date Wed, 27 Feb 2019 12:33:11 GMT
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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message