Getting a proper ID value into every document

2015-06-04 Thread Trejkaz
Hi all. We had been going for the longest time abusing Lucene's doc IDs as our own IDs and of course all our filters still work like this. But at the moment, we're looking at ways to break our dependencies on this. One of the motivators for this is the outright removal of FieldCache in Lucene 5.

Re: multi valued facets

2015-06-04 Thread Chris Hostetter
: Set the field to multiValued="true" in your schema. How'd you manage to : get multiple values in there without an indexing error? An existing : index built with Lucene directly? Erik: this isn't a Solr question -- the error message mentioned comes from the lucene/facets FacetsConfig class.

Re: multi valued facets

2015-06-04 Thread Erik Hatcher
Set the field to multiValued="true" in your schema. How'd you manage to get multiple values in there without an indexing error? An existing index built with Lucene directly? Erik > On Jun 4, 2015, at 17:27, Fielder, Todd Patrick wrote: > > I am trying to add a facet for which each doc

Exception when attempting to query using ToParentBlockJoinQuery in Lucene 5.1

2015-06-04 Thread Bauer, Herbert S. (Scott)
I’m working with Lucene 5.1 to try to make use of the relational structure of the block join index and query mechanisms. I’m querying with the following code: IndexReader reader = DirectoryReader.open(index); ToParentBlockJoinIndexSearcher searcher = new ToParentBlockJoinIndexSearcher(reade

Re: multi valued facets

2015-06-04 Thread Matt Hallman
Hello, You must set the field name as multi-valued with the FacetsConfig . FacetsConfig facetsConfig = new FacetsConfig(); facetsConfig.setMultiValued("fieldName", true); Then you can call: facetsConfig.build(luce

multi valued facets

2015-06-04 Thread Fielder, Todd Patrick
I am trying to add a facet for which each document can have multiple values, but am receiving the following exception: dimension "Role Name" is not multiValued, but it appears more than once in this document How do I create a MultiValued Facet? Thanks in advance