RE: [EXTERNAL] Re: Multivalued DocValuesField

2016-10-31 Thread Fielder, Todd Patrick
I don't believe I have it working, but have made progress I believe the issue was I was using a SortField() instead of a SortedNumericSortField() -Todd -Original Message- From: Fielder, Todd Patrick [mailto:tpfi...@sandia.gov] Sent: Monday, October 31, 2016 1:46 PM To: java-user

RE: [EXTERNAL] Re: Multivalued DocValuesField

2016-10-31 Thread Fielder, Todd Patrick
ucene 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 <tpfi...@sandia.gov> wrote: > > Hello, > > I have a question about Multivalued DocValuesFields...I am using > Lucen

RE: [EXTERNAL] Re: Multivalued DocValuesField

2016-10-31 Thread Fielder, Todd Patrick
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 <tpfi...@sandia.gov> wrote: &

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

range query highlighting

2015-12-23 Thread Fielder, Todd Patrick
I have a NumericRangeQuery and a TermQuery that I am combining into a Boolean query. I would then like to pass the Boolean query to the highlighter to highlight both the range and term hits. Currently, only the terms are being highlighted. Any help on how to get the range values to highlight

RE: [EXTERNAL] Re: ignore a match in a query

2015-07-23 Thread Fielder, Todd Patrick
Maybe you can use the phrase search like: NOT \Record type\ On 7/23/15, 12:53 PM, Fielder, Todd Patrick tpfi...@sandia.gov wrote: Hi, I'm wondering if there is a way to ignore a match in a query? For example, I have two strings 1) Record type: record 2) Record type: cd I do

ignore a match in a query

2015-07-23 Thread Fielder, Todd Patrick
Hi, I'm wondering if there is a way to ignore a match in a query? For example, I have two strings 1) Record type: record 2) Record type: cd I do not want the text record type to match, so searching for the text record should return string 1 and not string 2. I can't say NOT Record

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

lucene hanging when calling writer.deleteDocuments

2015-05-11 Thread Fielder, Todd Patrick
Hello, I have a call to writer.deleteDocuments(term); that hangs if the document is not in the index. It works fine if the document is in the index. Is this the expected behavior? If so, is there a better method to call if I don't know if the term is in the index? Thanks -Todd

highlighter/fragmenter question

2015-04-30 Thread Fielder, Todd Patrick
Hello, I'm not sure if this is the correct approach, so please let me know if there is a better way to accomplish the following task I am attempting to search an entire database for a keyword. To do this, I indexed all the data fields into a single content field with a delimiter between each

RE: [EXTERNAL] Re: general question

2015-04-02 Thread Fielder, Todd Patrick
approach to Todd's question? --Terry On Mon, Mar 30, 2015 at 6:08 PM, Fielder, Todd Patrick tpfi...@sandia.gov wrote: I am attempting to loop through the ChildScorer of the scorer.getChildren() method inside my collect() call, and it is empty. Is there something else I should do or some

general question

2015-03-30 Thread Fielder, Todd Patrick
Hello, I'm new to Lucene and am looking for advice. I'm wanting to search the entire DB (or almost the entire DB) for a keyword. The users also want to know which field the string occurred in. I can think of two ways to do this, but neither are ideal and I'm looking for suggestions: 1)

RE: [EXTERNAL] Re: general question

2015-03-30 Thread Fielder, Todd Patrick
those hits had matched. Mike McCandless http://blog.mikemccandless.com On Mon, Mar 30, 2015 at 1:07 PM, Fielder, Todd Patrick tpfi...@sandia.gov wrote: Hello, I'm new to Lucene and am looking for advice. I'm wanting to search the entire DB (or almost the entire DB) for a keyword

lucene eclipseLink integration

2015-03-05 Thread Fielder, Todd Patrick
Hello, I'm using eclipseLink 2.3 and am wondering if there are any libraries that integrate eclipseLink and lucene to provide automatic index updates similar to HibernateSearch? Which versions of Lucene do they support? Thanks -Todd