RE: [EXTERNAL] Re: Multivalued DocValuesField

2016-10-31 Thread Fielder, Todd Patrick
@lucene.apache.org Subject: RE: [EXTERNAL] Re: Multivalued DocValuesField I tried your suggestion and was able to get the indexing to work (I assume it's correct), but now the search is throwing an error... unexpected docvalues type SORTED_NUMERIC for field 'Planned Completion Date' (expected

RE: [EXTERNAL] Re: Multivalued DocValuesField

2016-10-31 Thread Fielder, Todd Patrick
n Woodward [mailto:a...@flax.co.uk] Sent: Monday, October 31, 2016 10:02 AM To: java-user@lucene.apache.org Subject: [EXTERNAL] Re: Multivalued DocValuesField You need to use a SortedNumericDocValuesField, which allows for multiple numeric values to be stored per-document. I’m not sure if that’s in L

RE: [EXTERNAL] Re: Multivalued DocValuesField

2016-10-31 Thread Fielder, Todd Patrick
I'll give it a try, thanks...I appreciate your help -Todd -Original Message- From: Alan Woodward [mailto:a...@flax.co.uk] Sent: Monday, October 31, 2016 10:02 AM To: java-user@lucene.apache.org Subject: [EXTERNAL] Re: Multivalued DocValuesField You need to use

Re: Multivalued DocValuesField

2016-10-31 Thread Alan Woodward
You need to use a SortedNumericDocValuesField, which allows for multiple numeric values to be stored per-document. I’m not sure if that’s in Lucene 5.0, though, you may need to upgrade to something more recent. Alan Woodward www.flax.co.uk > On 31 Oct 2016, at 15:34, Fielder, Todd Patrick

Multivalued DocValuesField

2016-10-31 Thread Fielder, Todd Patrick
Hello, I have a question about Multivalued DocValuesFields...I am using Lucene 5.0 I am indexing an object that contains an Array of Sub-objects. Those sub-objects have a Long value that I need to index with fieldStore=true. That works just fine. I also want to sort that field and so I am