[jira] [Commented] (SOLR-1581) Facet by Function
[ https://issues.apache.org/jira/browse/SOLR-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14366880#comment-14366880 ] Stanislav commented on SOLR-1581: - Am I right that this feature is already implemented as combination of stats and pivot facets in Solr 5? https://issues.apache.org/jira/browse/SOLR-6351 Facet by Function - Key: SOLR-1581 URL: https://issues.apache.org/jira/browse/SOLR-1581 Project: Solr Issue Type: New Feature Reporter: Grant Ingersoll Fix For: 4.9, Trunk Attachments: SOLR-1581.patch It would be really great if we could execute a function and quantize it into buckets that could then be returned as facets. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-1581) Facet by Function
[ https://issues.apache.org/jira/browse/SOLR-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13697446#comment-13697446 ] Otis Gospodnetic commented on SOLR-1581: [~gsingers] you still want/need this or has a solution for this emerged in the 4 years since the issue was opened? Facet by Function - Key: SOLR-1581 URL: https://issues.apache.org/jira/browse/SOLR-1581 Project: Solr Issue Type: New Feature Reporter: Grant Ingersoll Fix For: 4.4 Attachments: SOLR-1581.patch It would be really great if we could execute a function and quantize it into buckets that could then be returned as facets. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-1581) Facet by Function
[ https://issues.apache.org/jira/browse/SOLR-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13510230#comment-13510230 ] Ted Strauss commented on SOLR-1581: --- I'd like to offer to co-sponsor work on this issue if anyone here knows where to go with it. This relates to my issue https://issues.apache.org/jira/browse/SOLR-3742 Thanks Facet by Function - Key: SOLR-1581 URL: https://issues.apache.org/jira/browse/SOLR-1581 Project: Solr Issue Type: New Feature Reporter: Grant Ingersoll Fix For: 4.1 Attachments: SOLR-1581.patch It would be really great if we could execute a function and quantize it into buckets that could then be returned as facets. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-1581) Facet by Function
[ https://issues.apache.org/jira/browse/SOLR-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13449008#comment-13449008 ] Antoine Le Floc'h commented on SOLR-1581: - Do you confirm that as of Sep 2012, there is no other way to run a function on facet results, using the standard Solr4 ? (I am not talking of doing a custom facet processing in a patch). Thank you. Facet by Function - Key: SOLR-1581 URL: https://issues.apache.org/jira/browse/SOLR-1581 Project: Solr Issue Type: New Feature Reporter: Grant Ingersoll Fix For: 4.1 Attachments: SOLR-1581.patch It would be really great if we could execute a function and quantize it into buckets that could then be returned as facets. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-1581) Facet by Function
[ https://issues.apache.org/jira/browse/SOLR-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12996365#comment-12996365 ] Jan Høydahl commented on SOLR-1581: --- Ryan, I like that very much! We already have a variable syntax in HTTP don't we? {code} ?distfunc=dist(2,x,y,0,0)fl=name,id,distfunc... {code} Facet by Function - Key: SOLR-1581 URL: https://issues.apache.org/jira/browse/SOLR-1581 Project: Solr Issue Type: New Feature Reporter: Grant Ingersoll Fix For: Next Attachments: SOLR-1581.patch It would be really great if we could execute a function and quantize it into buckets that could then be returned as facets. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
Re: [jira] Commented: (SOLR-1581) Facet by Function
There is some support in DocValues for multiple values per document, but they still ultimately must reduce down to a single value coming out of the function. See the VectorValueSource as an example. In other words, the API is there, but nothing implements it. I imagine you could use the UninvertedField to back a ValueSource and have it leverage the DocValues that return multiple values. If you can specify your use case, that might help define a solution. On Feb 17, 2011, at 3:00 PM, Bill Bell wrote: Yes I know all too well. What would it take to extend VS to multivalued fields ? Bill Bell Sent from mobile On Feb 17, 2011, at 10:08 AM, Yonik Seeley (JIRA) j...@apache.org wrote: [ https://issues.apache.org/jira/browse/SOLR-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12995924#comment-12995924 ] Yonik Seeley commented on SOLR-1581: bq. It then occurred to me that wouldn't this be a faster way then doing the range queries Sometimes yes, sometimes no. This is sort of analogous to range vs frange. It depends on the number of ranges, the number of documents in the base set, etc. Using ValueSource will currently only work for single-valued fields. Facet by Function - Key: SOLR-1581 URL: https://issues.apache.org/jira/browse/SOLR-1581 Project: Solr Issue Type: New Feature Reporter: Grant Ingersoll Fix For: Next It would be really great if we could execute a function and quantize it into buckets that could then be returned as facets. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org -- Grant Ingersoll http://www.lucidimagination.com/ Search the Lucene ecosystem docs using Solr/Lucene: http://www.lucidimagination.com/search - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-1581) Facet by Function
[ https://issues.apache.org/jira/browse/SOLR-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12995915#comment-12995915 ] Grant Ingersoll commented on SOLR-1581: --- I've been digging into this a bit more and I've got an idea that I want to throw out there about this and how it relates to Numeric Range faceting (and possibly date faceting) Currently, the numeric range faceting produces a series of range queries from which it retrieves the number of documents that satisfy that query. For facet by function, I'm thinking that I would parse the facet.range value and get back a ValueSource, from which I would get the DocValues and then I would iterate over the DocValues for the base docset and keep counts for each bucket. It then occurred to me that wouldn't this be a faster way then doing the range queries (at the cost of it being a ValueSource and thus in memory) for each gap? Otherwise, what I will do is simply put in an if/else clause, if it is a function do the ValueSource, otherwise do the current way. Facet by Function - Key: SOLR-1581 URL: https://issues.apache.org/jira/browse/SOLR-1581 Project: Solr Issue Type: New Feature Reporter: Grant Ingersoll Fix For: Next It would be really great if we could execute a function and quantize it into buckets that could then be returned as facets. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-1581) Facet by Function
[ https://issues.apache.org/jira/browse/SOLR-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12995924#comment-12995924 ] Yonik Seeley commented on SOLR-1581: bq. It then occurred to me that wouldn't this be a faster way then doing the range queries Sometimes yes, sometimes no. This is sort of analogous to range vs frange. It depends on the number of ranges, the number of documents in the base set, etc. Using ValueSource will currently only work for single-valued fields. Facet by Function - Key: SOLR-1581 URL: https://issues.apache.org/jira/browse/SOLR-1581 Project: Solr Issue Type: New Feature Reporter: Grant Ingersoll Fix For: Next It would be really great if we could execute a function and quantize it into buckets that could then be returned as facets. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-1581) Facet by Function
[ https://issues.apache.org/jira/browse/SOLR-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12995928#comment-12995928 ] Ryan McKinley commented on SOLR-1581: - I like it! Depending on the size of the index, it seem like keeping the range query option would be good -- the Trie* fields do remarkably well. Using ValueSource would also make it easier/faster to get min/max values if we want to support open ranges and percentages Facet by Function - Key: SOLR-1581 URL: https://issues.apache.org/jira/browse/SOLR-1581 Project: Solr Issue Type: New Feature Reporter: Grant Ingersoll Fix For: Next Attachments: SOLR-1581.patch It would be really great if we could execute a function and quantize it into buckets that could then be returned as facets. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-1581) Facet by Function
[ https://issues.apache.org/jira/browse/SOLR-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12995994#comment-12995994 ] Grant Ingersoll commented on SOLR-1581: --- bq. This is sort of analogous to range vs frange. Do you think it is worthwhile to explore reusing the ValueSourceRangeFilter here and just do range queries then? Or should I pursue keeping my own buckets and just going through the doc set once? Or, I suppose, we could plan for a facet.range.method that allowed you to use different approaches. Facet by Function - Key: SOLR-1581 URL: https://issues.apache.org/jira/browse/SOLR-1581 Project: Solr Issue Type: New Feature Reporter: Grant Ingersoll Fix For: Next Attachments: SOLR-1581.patch It would be really great if we could execute a function and quantize it into buckets that could then be returned as facets. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
Re: [jira] Commented: (SOLR-1581) Facet by Function
Yes I know all too well. What would it take to extend VS to multivalued fields ? Bill Bell Sent from mobile On Feb 17, 2011, at 10:08 AM, Yonik Seeley (JIRA) j...@apache.org wrote: [ https://issues.apache.org/jira/browse/SOLR-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12995924#comment-12995924 ] Yonik Seeley commented on SOLR-1581: bq. It then occurred to me that wouldn't this be a faster way then doing the range queries Sometimes yes, sometimes no. This is sort of analogous to range vs frange. It depends on the number of ranges, the number of documents in the base set, etc. Using ValueSource will currently only work for single-valued fields. Facet by Function - Key: SOLR-1581 URL: https://issues.apache.org/jira/browse/SOLR-1581 Project: Solr Issue Type: New Feature Reporter: Grant Ingersoll Fix For: Next It would be really great if we could execute a function and quantize it into buckets that could then be returned as facets. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-1581) Facet by Function
[ https://issues.apache.org/jira/browse/SOLR-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12996032#comment-12996032 ] Grant Ingersoll commented on SOLR-1581: --- Another concern on this one is how to handle per field options, since we don't really have fields for functions, but still it would be useful to have multiple facet by function options. Facet by Function - Key: SOLR-1581 URL: https://issues.apache.org/jira/browse/SOLR-1581 Project: Solr Issue Type: New Feature Reporter: Grant Ingersoll Fix For: Next Attachments: SOLR-1581.patch It would be really great if we could execute a function and quantize it into buckets that could then be returned as facets. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-1581) Facet by Function
[ https://issues.apache.org/jira/browse/SOLR-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12996068#comment-12996068 ] Ryan McKinley commented on SOLR-1581: - i am not a huge fan of the {!tag=xxx} syntax, but perhaps we could use somethign like that to define a function once and then use it multiple times? Perhaps the field parameter stuff could first try fields then look for the function names? Seems like this keeps coming up... http://wiki.apache.org/solr/FieldAliasesAndGlobsInParams https://issues.apache.org/jira/browse/SOLR-1205 I like the idea of being able to define something like: {panel} ?alias=dist(2, x, y, 0, 0) AS distfl=name,id,distfacet.range=distf.dist.facet.range.gap=10...sort=dist asc {panel} Facet by Function - Key: SOLR-1581 URL: https://issues.apache.org/jira/browse/SOLR-1581 Project: Solr Issue Type: New Feature Reporter: Grant Ingersoll Fix For: Next Attachments: SOLR-1581.patch It would be really great if we could execute a function and quantize it into buckets that could then be returned as facets. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-1581) Facet by Function
[ https://issues.apache.org/jira/browse/SOLR-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12996157#comment-12996157 ] Hoss Man commented on SOLR-1581: haven't looked at the patch, barely skimmed the comments, but in regards to the how to handle per field options, since we don't really have fields question i think the right solution (to be consistent with the how everything else works) is to just implement SOLR-2251 -- i thought it was a good idea when we were just talking about simple fields, i think it's a crucial idea when we're talking about arbitrary functions. Facet by Function - Key: SOLR-1581 URL: https://issues.apache.org/jira/browse/SOLR-1581 Project: Solr Issue Type: New Feature Reporter: Grant Ingersoll Fix For: Next Attachments: SOLR-1581.patch It would be really great if we could execute a function and quantize it into buckets that could then be returned as facets. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-1581) Facet by Function
[ https://issues.apache.org/jira/browse/SOLR-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12995594#comment-12995594 ] Hoss Man commented on SOLR-1581: could probably reuse the sort parsing code for this ... it does a pretty good job of doing a quick test for field names, then looking for a matching function, then falling back to an assumption of esoteric field names Facet by Function - Key: SOLR-1581 URL: https://issues.apache.org/jira/browse/SOLR-1581 Project: Solr Issue Type: New Feature Reporter: Grant Ingersoll Fix For: Next It would be really great if we could execute a function and quantize it into buckets that could then be returned as facets. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-1581) Facet by Function
[ https://issues.apache.org/jira/browse/SOLR-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12994774#comment-12994774 ] Grant Ingersoll commented on SOLR-1581: --- I would agree it relates to SOLR-1240. In fact, API wise, I think we could just add facet.range.function= (or some abbreviation like facet.range.fn). The key here is that we don't want to have to run the query multiple times like one has to do w/ frange Facet by Function - Key: SOLR-1581 URL: https://issues.apache.org/jira/browse/SOLR-1581 Project: Solr Issue Type: New Feature Reporter: Grant Ingersoll Fix For: Next It would be really great if we could execute a function and quantize it into buckets that could then be returned as facets. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (SOLR-1581) Facet by Function
[ https://issues.apache.org/jira/browse/SOLR-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12994828#comment-12994828 ] Grant Ingersoll commented on SOLR-1581: --- actually, in looking at this, we don't need facet.range.function, we just need facet.range to take functions Facet by Function - Key: SOLR-1581 URL: https://issues.apache.org/jira/browse/SOLR-1581 Project: Solr Issue Type: New Feature Reporter: Grant Ingersoll Fix For: Next It would be really great if we could execute a function and quantize it into buckets that could then be returned as facets. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org