Re: How does query on AND work

2014-05-27 Thread Per Steffensen
Well, the only "search" i did, was ask this question on this mailing-list :-) On 26/05/14 17:05, Alexandre Rafalovitch wrote: Did not follow the whole story but " post-query-value-filter" does exist in Solr. Have you tried searching for pretty much that expression. and maybe something about cos

Re: How does query on AND work

2014-05-27 Thread Per Steffensen
Thanks for responding, Yonik. I tried out your suggestion, and it seems to work as it is supposed to, and it performs at least as well as the "hacky implementation I did myself". Wish you had responded earlier. Or maybe not, then I wouldn't have dived into it myself making an implementation tha

Re: How does query on AND work

2014-05-26 Thread Alexandre Rafalovitch
Did not follow the whole story but " post-query-value-filter" does exist in Solr. Have you tried searching for pretty much that expression. and maybe something about cost-based filter. Regards, Alex On 26/05/2014 6:49 pm, "Per Steffensen" wrote: > Do not know if this is a special-case. I gue

Re: How does query on AND work

2014-05-26 Thread Per Steffensen
Do not know if this is a special-case. I guess an AND-query where one side hits 500-1000 and the other side hits billions is a special-case. But this way of carrying out the query might also be an optimization in less uneven cases. It does not require that the "lots of hits"-part of the query is

Re: How does query on AND work

2014-05-23 Thread Yonik Seeley
On Fri, May 23, 2014 at 11:37 AM, Toke Eskildsen wrote: > Per Steffensen [st...@designware.dk] wrote: >> * It IS more efficient to just use the index for the >> "no_dlng_doc_ind_sto"-part of the request to get doc-ids that match that >> part and then fetch timestamp-doc-values for those doc-ids t

RE: How does query on AND work

2014-05-23 Thread Toke Eskildsen
Per Steffensen [st...@designware.dk] wrote: > * It IS more efficient to just use the index for the > "no_dlng_doc_ind_sto"-part of the request to get doc-ids that match that > part and then fetch timestamp-doc-values for those doc-ids to filter out > the docs that does not match the "timestamp_dlng

Re: How does query on AND work

2014-05-23 Thread Per Steffensen
I can answer some of this myself now that I have dived into it to understand what Solr/Lucene does and to see if it can be done better * In current Solr/Lucene (or at least in 4.4) indices on both "no_dlng_doc_ind_sto" and "timestamp_dlng_doc_ind_sto" are used and the doc-id-sets found are inter

How does query on AND work

2014-05-19 Thread Per Steffensen
Hi Lets say I have a Solr collection (running across several servers) containing 5 billion documents. A.o. each document have a value for field "no_dlng_doc_ind_sto" (a long) and field "timestamp_dlng_doc_ind_sto" (also a long). Both "no_dlng_doc_ind_sto" and "timestamp_dlng_doc_ind_sto" are