Thanks very much for help.
Ok, so i believe my rest of the code is correct, i just need to
"Initialize a FacetsCounts per indexFieldName"
How do i do this, is there some TestCase, or some sample code available ?
Thanks,
On Sun, Jun 22, 2014 at 10:05 PM, Shai Erera wrote:
> OK I see. I t
FacetsConfig Object is same.
(indexConfig == searchConfig) returns true.
On Sat, Jun 21, 2014 at 11:01 PM, Shai Erera wrote:
> If you can, while in debug mode try to note the instance ID of the
> FacetsConfig, and assert it is indeed the same (i.e. indexConfig ==
> searchConfig).
>
> Shai
>
>
On commenting
//config.setIndexFieldName("CITY", "city"); at search time, this is before
i do, getTopChildren(...)
I get following exception.
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2
at
org.apache.lucene.facet.taxonomy.FastTaxonomyFacetCounts.count(FastTaxonomyFacetCounts.java:
Reply wasn't sent to the list.
On Jun 22, 2014 8:15 PM, "Shai Erera" wrote:
> Can you post an example which demonstrates the problem? It's also
> interesting how you count the facets, eg do you use a TaxonomyFacets object
> or something else?
>
> Have you looked at the facet demo code? It contain
Hello:
>What do you mean by does not index anything?
When I do a search the value returned for the "dim" set to "Publish Date"
is null. If I pass through value[0] the publish date year is returned by
the search.
setHierarchical was called.
When a String[] with more than one element is passed an
Thanks for your reply & clarifications
What do you mean by "When I use a SortField instead"? Unless you are
> using early termination, Collector.collect is supposed to be called
> for every matching document
For a normal sorting-query, on a top-level searcher, I execute
TopDocs docs = searcher
OK I see. I think the code works OK though. It documents that you should
call the other constructor if you specify a custom indexFieldName for some
of the dimensions.
Currently if you index dimensions under different indexFieldNames, you
should initialize a FacetsCounts per indexFieldName. There's
I will try to dig more on your suggestions, and also assert FacetsConfig
object.
While debugging i found, buildFacetsResult(...) method from
DrillSideways.java
Its internally invoking following constructor from
FastTaxonomyFacetCounts.java
FastTaxonomyFacetCounts() {
this(FacetsConfig.DEFAUL
Oli,
thanks for your valuable inputs!
> Generally, we found it beneficial to not combine all functionality in a
> single suggester
Makes absolutely sense, but doesn't help keeping RAM-load low ;) unless you go
with WFSTs.
What we have done so far is build a term-index based on the terms of th
What do you mean by does not index anything? Do you get an exception when
you add a String[] with more than one element?
You should probably call conf.setHierarchical(dimension), but if you don't
do that you should receive an IllegalArgumentException telling you to do
that...
Shai
On Sun, Jun 2
10 matches
Mail list logo