Get matching fields from a BooleanQuery

2017-06-19 Thread Frederik Van Hoyweghen
Hey everyone, To start, we are using Lucene 4.3. To search, we prepare several queries and combine these into a BooleanQuery. What we are looking for is a way to determine on which specific fields a certain document matched. For example, I create 2 queries: one to search in the "Name" field, and

Re: Updating the DocValues field doesn't seem to update its associated StoredField value

2017-06-19 Thread Joe Ye
Hi, Could anyone help with my issue described below? If I'm not posting on the right mailing list please direct me to the correct one. Many thanks, Joe On Mon, Jun 12, 2017 at 3:05 PM, Joe Ye wrote: > Hi, > > I have a few NumericDocValuesField fields and also added separate > StoredField fiel

Re: Updating the DocValues field doesn't seem to update its associated StoredField value

2017-06-19 Thread Michael McCandless
Updating the doc value will not update the stored field (what document.get returns). If you need to change stored fields you have to use the IW.updateDocuments API, where the old document is deleted and a new document is indexed, atomically (to refresh). But also see Erick's solr-specific respons

Re: Updating the DocValues field doesn't seem to update its associated StoredField value

2017-06-19 Thread Joe Ye
Thanks Mike! My colleague only forwarded Erick's Solr reply today as it seems I didn't get any emails and may have been taken off the mailing list for some reason? We're using Lucene core only (version 6.2.1 at the moment). So there's no link between the docValue and its associated stored field? I

Re: Updating the DocValues field doesn't seem to update its associated StoredField value

2017-06-19 Thread Erick Erickson
Joe: I have no reason to believe you were taken off the user's list intentionally. Maybe your spam filter is over-zealous or something? Or perhaps you registered with some no-longer-valid mail address and could register again? Erick On Mon, Jun 19, 2017 at 8:50 AM, Joe Ye wrote: > Thanks Mike!

sub

2017-06-19 Thread kenny mcfarland

Re: Updating the DocValues field doesn't seem to update its associated StoredField value

2017-06-19 Thread Michael McCandless
In pure Lucene you could just pull the doc values for the docIDs in your set of search results; MultiDocValues can be helpful sugar here, unless you need SORTED or SORTED_SET in which case it's best to go per-segment. Or just track down where Solr does this and poach those sources. Mike McCandles

Re: email field - analyzed and not analyzed in single field using custom analyzer

2017-06-19 Thread Kumaran Ramasubramanian
Hi Steve Thanks for the input. How to apply WordDelimiterGraphFilter / WordDelimiterFilter for email tokens alone using email regex ? i want to have only analyzed tokens for other tokens with other type of special characters... -- Kumaran R On Thu, Jun 15, 2017 at 7:43 PM, Steve Rowe wrot

SpanNearQuery Class issue

2017-06-19 Thread Ranganath B N
Hi, This is regarding the search limit of SpanNearQuery Class. I create a lucene index consisting of 2 billion documents and search the index using SpanNearQuery class object in Searcher.search(Query query, int n). But the search method returns Results only if search terms are withi