On Sun, Sep 29, 2019 at 8:37 PM Barth, Jochen <ba...@ub.uni-heidelberg.de> wrote:
> Thanks for your hint. The documentation does not say if the result of > filter is cached here (like fq=...) (I could test this). > 'filter' implies caching. > > Is *:* more expensive (query time) than filter() (*:* not required in > StandardQueryParser) ? > I either doesn't get the question or it isn't worth to worry about. > > Kind regrads, > Jochen > > ________________________________________ > Von: Mikhail Khludnev <m...@apache.org> > Gesendet: Samstag, 28. September 2019 22:58 > An: solr-user > Betreff: Re: filter in JSON Query DSL > > Giving > > https://lucene.apache.org/solr/guide/8_0/other-parsers.html#boolean-query-parser > something > like > '{"query": { "bool": { "must": ["*:*"] , "filter": [ > "meta_subject_txt:globe" ] } } }' > I'm not sure why to put filter under must they should be siblings. > > On Fri, Sep 27, 2019 at 4:34 PM Jochen Barth <ba...@ub.uni-heidelberg.de> > wrote: > > > Dear reader, > > > > this query works as expected: > > > > curl -XGET http://localhost:8982/solr/Suchindex/query -d ' > > {"query": { "bool": { "must": "*:*" } }, > > "filter": [ "meta_subject_txt:globe" ] }' > > > > this does not (nor without the curley braces around "filter"): > > > > curl -XGET http://localhost:8982/solr/Suchindex/query -d ' > > {"query": { "bool": { "must": [ "*:*", { "filter": [ > > "meta_subject_txt:globe" ] } ] } } }' > > > > Is "filter" within deeper queries possible? > > > > I've got some complex queries with a "kernel" somewhat below the top > > level... > > > > Is "canonical" json important to match query cache entry? > > > > Would it help to serialize this queries to standard syntax and then use > > filter(...)? > > > > Kind regards, > > > > Jochen > > > > > > > > -- > > Jochen Barth * Universitätsbibliothek Heidelberg, IT * Telefon 06221 > > 54-2580 > > > > > > -- > Sincerely yours > Mikhail Khludnev > -- Sincerely yours Mikhail Khludnev