[jira] Updated: (SOLR-764) Support facet.sort=false (index order) with distributed search
[ https://issues.apache.org/jira/browse/SOLR-764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yonik Seeley updated SOLR-764: -- Attachment: SOLR-764.patch How about this patch to fix the sort order ? It should make distributed search lex sort equal to what one would get for non-distributed search. Support facet.sort=false (index order) with distributed search -- Key: SOLR-764 URL: https://issues.apache.org/jira/browse/SOLR-764 Project: Solr Issue Type: New Feature Affects Versions: 1.3 Reporter: Wojtek Piaseczny Fix For: 1.4 Attachments: SOLR-764.patch, SOLR-764.patch, SOLR-764.patch Distributed search does not currently support sorting facets by index order (facet.sort=false). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-764) Support facet.sort=false (index order) with distributed search
[ https://issues.apache.org/jira/browse/SOLR-764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yonik Seeley updated SOLR-764: -- Attachment: SOLR-764.patch Revised patch that switches lex to index to avoid confusion about which lex (the invisible indexed token, or the human readable label). TODO: update wiki when this patch is committed Support facet.sort=false (index order) with distributed search -- Key: SOLR-764 URL: https://issues.apache.org/jira/browse/SOLR-764 Project: Solr Issue Type: New Feature Affects Versions: 1.3 Reporter: Wojtek Piaseczny Fix For: 1.4 Attachments: SOLR-764.patch, SOLR-764.patch, SOLR-764.patch, SOLR-764.patch Distributed search does not currently support sorting facets by index order (facet.sort=false). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-764) Support facet.sort=false (index order) with distributed search
[ https://issues.apache.org/jira/browse/SOLR-764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lars Kotthoff updated SOLR-764: --- Attachment: SOLR-764.patch Attaching new patch which, as per Yonik's suggestion, doesn't refine facet counts when minCount =1 and sort == false. Regarding the term order problem, I think it might be best to redesign the whole thing. Term order as such probably doesn't make a lot of sense, it's really used to get the terms in alphabetical order. So why not drop term order altogether and introduce lexicographic order instead. This probably also means changing the facet.sort parameter from a boolean to a string -- count or lex. This would mean that the same query will return the same results for both distributed and non-distributed setups. The downside is that the facets always need to be sorted (i.e. more computation), but according to Wojtek's measurements this seems to be neglible. If this seems like the right direction to go to, we should probably open another issue for this. Support facet.sort=false (index order) with distributed search -- Key: SOLR-764 URL: https://issues.apache.org/jira/browse/SOLR-764 Project: Solr Issue Type: New Feature Affects Versions: 1.3 Reporter: Wojtek Piaseczny Fix For: 1.4 Attachments: SOLR-764.patch, SOLR-764.patch Distributed search does not currently support sorting facets by index order (facet.sort=false). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-764) Support facet.sort=false (index order) with distributed search
[ https://issues.apache.org/jira/browse/SOLR-764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yonik Seeley updated SOLR-764: -- Description: Distributed search does not currently support sorting facets by index order (facet.sort=false). (was: If you specify facet.limit=-1 and facet.sort=false, no facet results are returned. ) Summary: Support facet.sort=false (index order) with distributed search (was: facet.limit=-1 with facet.sort=false does not work in distributed search) Support facet.sort=false (index order) with distributed search -- Key: SOLR-764 URL: https://issues.apache.org/jira/browse/SOLR-764 Project: Solr Issue Type: New Feature Affects Versions: 1.3 Reporter: Wojtek Piaseczny Fix For: 1.4 Distributed search does not currently support sorting facets by index order (facet.sort=false). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-764) Support facet.sort=false (index order) with distributed search
[ https://issues.apache.org/jira/browse/SOLR-764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lars Kotthoff updated SOLR-764: --- Attachment: SOLR-764.patch Patch implementing support for facet.sort=false with distributed search. Simplified the existing code by removing things that weren't used and added an additional method to sort facets by term number. Note that this implementation is flawed -- there are no distributed term numbers, therefore it's possible that several facet values have the same term number because they come from different shards. In that case the lexicographic order of the value will be used to break the tie. It is possible that facet values are returned in a different order for distributed and local setups. The patch also adds a unit test, commented out because of the issues described above. Support facet.sort=false (index order) with distributed search -- Key: SOLR-764 URL: https://issues.apache.org/jira/browse/SOLR-764 Project: Solr Issue Type: New Feature Affects Versions: 1.3 Reporter: Wojtek Piaseczny Fix For: 1.4 Attachments: SOLR-764.patch Distributed search does not currently support sorting facets by index order (facet.sort=false). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.