[jira] [Commented] (LUCENE-5801) Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader

2014-07-18 Thread Nicola Buso (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-5801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14066443#comment-14066443
 ] 

Nicola Buso commented on LUCENE-5801:
-

Which type of facets are you using?

I'm testing it with FacetField work ok.
I did few tests with IntAssociationFacetField and I saw your error, seam that 
IntAssociationFacetField add more ordinals than the normal FacetField, but I 
need to investigate on it.

If you provide more information I can try to give a look.


 Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 -

 Key: LUCENE-5801
 URL: https://issues.apache.org/jira/browse/LUCENE-5801
 Project: Lucene - Core
  Issue Type: Bug
Affects Versions: 4.7
Reporter: Nicola Buso
Assignee: Shai Erera
 Fix For: 5.0, 4.10

 Attachments: LUCENE-5801.patch, LUCENE-5801.patch, 
 LUCENE-5801_1.patch, LUCENE-5801_2.patch


 from lucene  4.6.1 the class:
 org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 was removed; resurrect it because used merging indexes related to merged 
 taxonomies.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5801) Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader

2014-07-18 Thread Nicola Buso (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-5801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14066483#comment-14066483
 ] 

Nicola Buso commented on LUCENE-5801:
-

sorry I did not reply to your question; the decode is mainly a consiquence of:

  /**
   * Expert: override in case you used custom encoding for the categories under
   * this field.
   */
  protected OrdinalsReader getOrdinalsReader(String field) {
return new DocValuesOrdinalsReader(field);
  }


 Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 -

 Key: LUCENE-5801
 URL: https://issues.apache.org/jira/browse/LUCENE-5801
 Project: Lucene - Core
  Issue Type: Bug
Affects Versions: 4.7
Reporter: Nicola Buso
Assignee: Shai Erera
 Fix For: 5.0, 4.10

 Attachments: LUCENE-5801.patch, LUCENE-5801.patch, 
 LUCENE-5801_1.patch, LUCENE-5801_2.patch


 from lucene  4.6.1 the class:
 org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 was removed; resurrect it because used merging indexes related to merged 
 taxonomies.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-5801) Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader

2014-07-03 Thread Nicola Buso (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-5801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicola Buso updated LUCENE-5801:


Attachment: LUCENE-5801_2.patch

Sure Shai, this is the patch

LUCENE-5801_2.patch: reverted FacetsConfig, added FacetsConfig inner extension 
in OrdinalMappingAtomicReader

 Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 -

 Key: LUCENE-5801
 URL: https://issues.apache.org/jira/browse/LUCENE-5801
 Project: Lucene - Core
  Issue Type: Bug
Affects Versions: 4.7
Reporter: Nicola Buso
 Attachments: LUCENE-5801.patch, LUCENE-5801_1.patch, 
 LUCENE-5801_2.patch


 from lucene  4.6.1 the class:
 org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 was removed; resurrect it because used merging indexes related to merged 
 taxonomies.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-5801) Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader

2014-07-02 Thread Nicola Buso (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-5801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicola Buso updated LUCENE-5801:


Attachment: LUCENE-5801_1.patch

public static FacetsConfig.dedupAndEncode(...)
added methods to ovveride in case of different encoding

 Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 -

 Key: LUCENE-5801
 URL: https://issues.apache.org/jira/browse/LUCENE-5801
 Project: Lucene - Core
  Issue Type: Bug
Affects Versions: 4.7
Reporter: Nicola Buso
 Attachments: LUCENE-5801.patch, LUCENE-5801_1.patch


 from lucene  4.6.1 the class:
 org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 was removed; resurrect it because used merging indexes related to merged 
 taxonomies.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5801) Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader

2014-07-02 Thread Nicola Buso (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-5801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14049948#comment-14049948
 ] 

Nicola Buso commented on LUCENE-5801:
-

You are right Shai, I think while there is an abstraction for the decode part 
of the values, it's missing the encode abstraction.

 Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 -

 Key: LUCENE-5801
 URL: https://issues.apache.org/jira/browse/LUCENE-5801
 Project: Lucene - Core
  Issue Type: Bug
Affects Versions: 4.7
Reporter: Nicola Buso
 Attachments: LUCENE-5801.patch, LUCENE-5801_1.patch


 from lucene  4.6.1 the class:
 org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 was removed; resurrect it because used merging indexes related to merged 
 taxonomies.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5801) Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader

2014-07-02 Thread Nicola Buso (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-5801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14050278#comment-14050278
 ] 

Nicola Buso commented on LUCENE-5801:
-

Than would you prefer to have a o.a.l.f.t.utils.DefaultEncoding with a static 
method called both by FacetsConfig.dedup.. and OrdinalMappingAtomicReader?

 Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 -

 Key: LUCENE-5801
 URL: https://issues.apache.org/jira/browse/LUCENE-5801
 Project: Lucene - Core
  Issue Type: Bug
Affects Versions: 4.7
Reporter: Nicola Buso
 Attachments: LUCENE-5801.patch, LUCENE-5801_1.patch


 from lucene  4.6.1 the class:
 org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 was removed; resurrect it because used merging indexes related to merged 
 taxonomies.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Created] (LUCENE-5801) Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader

2014-07-01 Thread Nicola Buso (JIRA)
Nicola Buso created LUCENE-5801:
---

 Summary: Resurrect 
org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 Key: LUCENE-5801
 URL: https://issues.apache.org/jira/browse/LUCENE-5801
 Project: Lucene - Core
  Issue Type: Bug
Affects Versions: 4.7
Reporter: Nicola Buso


from lucene  4.6.1 the class:
org.apache.lucene.facet.util.OrdinalMappingAtomicReader

was removed; resurrect it because used merging indexes related to merged 
taxonomies.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5801) Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader

2014-07-01 Thread Nicola Buso (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-5801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14048839#comment-14048839
 ] 

Nicola Buso commented on LUCENE-5801:
-

Thanks Shai, I will follow you indications and later I will reintroduce also 
TaxonomyMergeUtils.

 Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 -

 Key: LUCENE-5801
 URL: https://issues.apache.org/jira/browse/LUCENE-5801
 Project: Lucene - Core
  Issue Type: Bug
Affects Versions: 4.7
Reporter: Nicola Buso

 from lucene  4.6.1 the class:
 org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 was removed; resurrect it because used merging indexes related to merged 
 taxonomies.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-5801) Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader

2014-07-01 Thread Nicola Buso (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-5801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicola Buso updated LUCENE-5801:


Attachment: LUCENE-5801.patch

Simple patch to test it working

 Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 -

 Key: LUCENE-5801
 URL: https://issues.apache.org/jira/browse/LUCENE-5801
 Project: Lucene - Core
  Issue Type: Bug
Affects Versions: 4.7
Reporter: Nicola Buso
 Attachments: LUCENE-5801.patch


 from lucene  4.6.1 the class:
 org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 was removed; resurrect it because used merging indexes related to merged 
 taxonomies.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-5801) Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader

2014-07-01 Thread Nicola Buso (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-5801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14049019#comment-14049019
 ] 

Nicola Buso commented on LUCENE-5801:
-

Shai,

if I accept an OrdinalsReader in ctor I would need later in:
OrdinalMappingAtomicReader.getBinaryDocValues(String field)

to modify it to respect the parameter 'field' and currently 
DocValuesOrdinalsReader.field is private final.
Let me know.


 Resurrect org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 -

 Key: LUCENE-5801
 URL: https://issues.apache.org/jira/browse/LUCENE-5801
 Project: Lucene - Core
  Issue Type: Bug
Affects Versions: 4.7
Reporter: Nicola Buso
 Attachments: LUCENE-5801.patch


 from lucene  4.6.1 the class:
 org.apache.lucene.facet.util.OrdinalMappingAtomicReader
 was removed; resurrect it because used merging indexes related to merged 
 taxonomies.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-4748) Add DrillSideways helper class to Lucene facets module

2013-02-22 Thread Nicola Buso (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-4748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13584320#comment-13584320
 ] 

Nicola Buso commented on LUCENE-4748:
-

Hi,

can you change DrillSideways class so that accept optionally some kind of 
factory for the facet collector? so that we can decide outside DrillSideways if 
we want a different implementation of the FacetCollector to be used!


Nicola.

 Add DrillSideways helper class to Lucene facets module
 --

 Key: LUCENE-4748
 URL: https://issues.apache.org/jira/browse/LUCENE-4748
 Project: Lucene - Core
  Issue Type: Improvement
  Components: modules/facet
Reporter: Michael McCandless
Assignee: Michael McCandless
 Fix For: 4.2, 5.0

 Attachments: DrillSideways-alternative.tar.gz, LUCENE-4748.patch, 
 LUCENE-4748.patch, LUCENE-4748.patch, LUCENE-4748.patch, LUCENE-4748.patch, 
 LUCENE-4748.patch, LUCENE-4748.patch, LUCENE-4748.patch


 This came out of a discussion on the java-user list with subject
 Faceted search in OR: http://markmail.org/thread/jmnq6z2x7ayzci5k
 The basic idea is to count near misses during collection, ie
 documents that matched the main query and also all except one of the
 drill down filters.
 Drill sideways makes for a very nice faceted search UI because you
 don't lose the facet counts after drilling in.  Eg maybe you do a
 search for cameras, and you see facets for the manufacturer, so you
 drill into Nikon.
 With drill sideways, even after drilling down, you'll still get the
 counts for all the other brands, where each count tells you how many
 hits you'd get if you changed to a different manufacturer.
 This becomes more fun if you add further drill-downs, eg maybe I next drill
 down into Resolution=10 megapixels, and then I can see how many 10
 megapixel cameras all other manufacturers, and what other resolutions
 Nikon cameras offer.

--
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] (LUCENE-4748) Add DrillSideways helper class to Lucene facets module

2013-02-22 Thread Nicola Buso (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-4748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13584399#comment-13584399
 ] 

Nicola Buso commented on LUCENE-4748:
-

I have this case (I'm sure I'm not alone):
http://markmail.org/search/?q=FacetRequest%20include%20residue#query:FacetRequest%20include%20residue%20list%3Aorg.apache.lucene.java-user+page:1+mid:2qgovhht5miqmhlk+state:results

I implemented this creating a facetcollector that take count of the selection 
the user has done. I've not the 4.2 version where you introduced 
FacetsCollector.create(..) method; I will check there if I find something 
interesting.

 Add DrillSideways helper class to Lucene facets module
 --

 Key: LUCENE-4748
 URL: https://issues.apache.org/jira/browse/LUCENE-4748
 Project: Lucene - Core
  Issue Type: Improvement
  Components: modules/facet
Reporter: Michael McCandless
Assignee: Michael McCandless
 Fix For: 4.2, 5.0

 Attachments: DrillSideways-alternative.tar.gz, LUCENE-4748.patch, 
 LUCENE-4748.patch, LUCENE-4748.patch, LUCENE-4748.patch, LUCENE-4748.patch, 
 LUCENE-4748.patch, LUCENE-4748.patch, LUCENE-4748.patch


 This came out of a discussion on the java-user list with subject
 Faceted search in OR: http://markmail.org/thread/jmnq6z2x7ayzci5k
 The basic idea is to count near misses during collection, ie
 documents that matched the main query and also all except one of the
 drill down filters.
 Drill sideways makes for a very nice faceted search UI because you
 don't lose the facet counts after drilling in.  Eg maybe you do a
 search for cameras, and you see facets for the manufacturer, so you
 drill into Nikon.
 With drill sideways, even after drilling down, you'll still get the
 counts for all the other brands, where each count tells you how many
 hits you'd get if you changed to a different manufacturer.
 This becomes more fun if you add further drill-downs, eg maybe I next drill
 down into Resolution=10 megapixels, and then I can see how many 10
 megapixel cameras all other manufacturers, and what other resolutions
 Nikon cameras offer.

--
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] [Updated] (LUCENE-4748) Add DrillSideways helper class to Lucene facets module

2013-02-10 Thread Nicola Buso (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-4748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicola Buso updated LUCENE-4748:


Attachment: DrillSideways-alternative.tar.gz

This is another implementation of the brilliant idea from Mike McCandles in the 
ml. In the code FacetDrillDown is a porting of the lucene-4.2 DrillDown class 
in lucene-4.1. Next step would be to remove the dummy MatchAllDocsQuery.

 Add DrillSideways helper class to Lucene facets module
 --

 Key: LUCENE-4748
 URL: https://issues.apache.org/jira/browse/LUCENE-4748
 Project: Lucene - Core
  Issue Type: Improvement
  Components: modules/facet
Reporter: Michael McCandless
Assignee: Michael McCandless
 Fix For: 4.2, 5.0

 Attachments: DrillSideways-alternative.tar.gz, LUCENE-4748.patch, 
 LUCENE-4748.patch, LUCENE-4748.patch, LUCENE-4748.patch, LUCENE-4748.patch, 
 LUCENE-4748.patch


 This came out of a discussion on the java-user list with subject
 Faceted search in OR: http://markmail.org/thread/jmnq6z2x7ayzci5k
 The basic idea is to count near misses during collection, ie
 documents that matched the main query and also all except one of the
 drill down filters.
 Drill sideways makes for a very nice faceted search UI because you
 don't lose the facet counts after drilling in.  Eg maybe you do a
 search for cameras, and you see facets for the manufacturer, so you
 drill into Nikon.
 With drill sideways, even after drilling down, you'll still get the
 counts for all the other brands, where each count tells you how many
 hits you'd get if you changed to a different manufacturer.
 This becomes more fun if you add further drill-downs, eg maybe I next drill
 down into Resolution=10 megapixels, and then I can see how many 10
 megapixel cameras all other manufacturers, and what other resolutions
 Nikon cameras offer.

--
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] (LUCENE-4748) Add DrillSideways helper class to Lucene facets module

2013-02-06 Thread Nicola Buso (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-4748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13572354#comment-13572354
 ] 

Nicola Buso commented on LUCENE-4748:
-

I'm looking into it and I have a question.

why are your collecting facets in two different groups (drilldown and 
drillsideways)?
In the final end the user doesn't matter of these two groups and want them 
merged (a facet can be in both groups). Is there a specific use case you have 
in mind to maintain them separated?

 Add DrillSideways helper class to Lucene facets module
 --

 Key: LUCENE-4748
 URL: https://issues.apache.org/jira/browse/LUCENE-4748
 Project: Lucene - Core
  Issue Type: Improvement
  Components: modules/facet
Reporter: Michael McCandless
Assignee: Michael McCandless
 Fix For: 4.2, 5.0

 Attachments: LUCENE-4748.patch, LUCENE-4748.patch, LUCENE-4748.patch


 This came out of a discussion on the java-user list with subject
 Faceted search in OR: http://markmail.org/thread/jmnq6z2x7ayzci5k
 The basic idea is to count near misses during collection, ie
 documents that matched the main query and also all except one of the
 drill down filters.
 Drill sideways makes for a very nice faceted search UI because you
 don't lose the facet counts after drilling in.  Eg maybe you do a
 search for cameras, and you see facets for the manufacturer, so you
 drill into Nikon.
 With drill sideways, even after drilling down, you'll still get the
 counts for all the other brands, where each count tells you how many
 hits you'd get if you changed to a different manufacturer.
 This becomes more fun if you add further drill-downs, eg maybe I next drill
 down into Resolution=10 megapixels, and then I can see how many 10
 megapixel cameras all other manufacturers, and what other resolutions
 Nikon cameras offer.

--
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