Re: StrDocValues

2015-08-27 Thread Jamie Johnson
Actually I should have just tried this before asking but I'll say what I'm seeing and maybe someone can confirm. Faceting looks like it took this into account, i.e. the counts were 0 for values that were in documents that I removed using my AnalyticQuery. I had expected that the AnalyticsQuery

Re: StrDocValues

2015-08-27 Thread Jamie Johnson
Thanks Yonik. I currently am using this to negate the score of a document given the value of a particular field within the document, then using a custom AnalyticQuery to only collect documents with a score 0. Will this also impact the faceting counts? On Wed, Aug 26, 2015 at 8:32 PM, Yonik

Re: StrDocValues

2015-08-27 Thread Erick Erickson
Right, when scoring any document that scores 0 is removed from the results and facets etc. are calculated afterwards. Best, Erick On Thu, Aug 27, 2015 at 10:24 AM, Jamie Johnson jej2...@gmail.com wrote: Actually I should have just tried this before asking but I'll say what I'm seeing and maybe

Re: StrDocValues

2015-08-27 Thread Yonik Seeley
On Thu, Aug 27, 2015 at 2:43 PM, Erick Erickson erickerick...@gmail.com wrote: Right, when scoring any document that scores 0 is removed from the results Just to clarify, I think Jamie removed 0 scoring documents himself. Solr has never done this itself. Lucene used to a long time ago and

Re: StrDocValues

2015-08-27 Thread Jamie Johnson
Right, I am removing them myself. Another feature which would be great would be the ability to specify a custom collector like the positive score only collector in this case to avoid having to do an extra pass over all of the scores, but I don't believe there is a way to do that now right? On

Re: StrDocValues

2015-08-26 Thread Mikhail Khludnev
, Jamie Johnson jej2...@gmail.com wrote: Are there any example implementation showing how StrDocValues works? I am not sure if this is the right place or not, but I was thinking about having some document level doc value that I'd like to read in a function query to impact if the document

StrDocValues

2015-08-26 Thread Jamie Johnson
Are there any example implementation showing how StrDocValues works? I am not sure if this is the right place or not, but I was thinking about having some document level doc value that I'd like to read in a function query to impact if the document is returned or not. Am I barking up the right

Re: StrDocValues

2015-08-26 Thread Jamie Johnson
I think I found it. {!boost..} gave me what i was looking for and then a custom collector filtered out anything that I didn't want to show. On Wed, Aug 26, 2015 at 1:48 PM, Jamie Johnson jej2...@gmail.com wrote: Are there any example implementation showing how StrDocValues works? I am

Re: StrDocValues

2015-08-26 Thread Jamie Johnson
how StrDocValues works? I am not sure if this is the right place or not, but I was thinking about having some document level doc value that I'd like to read in a function query to impact if the document is returned or not. Am I barking up the right tree looking at this or is there another

Re: StrDocValues

2015-08-26 Thread Yonik Seeley
On Wed, Aug 26, 2015 at 6:20 PM, Jamie Johnson jej2...@gmail.com wrote: I don't see it explicitly mentioned, but does the boost only get applied to the final documents/score that matched the provided query or is it called for each field that matched? I'm assuming only once per document that