"My expectation is that scanning Doc Values might be faster than inverted index if a query matches more than %25 of documents."
I seriously doubt it. Or my expectations are really off base, which is always possible, I confess I've never measured though. At a high level: indexed: find entry for term_im_searching_for, read the list of IDs it satisfies immediately DocValues if (doc1.val.equals(term_im_searching_for)) { add it to the list } And if there was more than one clause you'd be scanning the DocValues for each term..... It'd be interesting to actually measure though. Erick On Mon, Aug 13, 2018 at 1:24 AM, Mikhail Khludnev <m...@apache.org> wrote: > https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/schema/FieldType.java#L881 > > https://github.com/apache/lucene-solr/blob/17eb8cd14d27d2680fe7c4b3871f3eb883542d34/solr/core/src/java/org/apache/solr/search/facet/FacetField.java#L106 > > > On Mon, Aug 13, 2018 at 9:02 AM Zahra Aminolroaya <z.aminolro...@gmail.com> > wrote: > >> Thanks Erick, Shawn and Tomoko for complete answers. >> >> If I set both docvalue and indexed "true" in a field, will Solr understand >> to use which technique for faceting or searching? Or Is there any way to >> inform Solr to use which technique? >> >> >> >> -- >> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html >> > > > -- > Sincerely yours > Mikhail Khludnev