RE: including a minus sign "-" in the token

2017-06-11 Thread Phil Scadden
. To: Phil Scadden <p.scad...@gns.cri.nz> Subject: Re: including a minus sign "-" in the token On 6/9/2017 8:12 PM, Phil Scadden wrote: > So, the field I am using for search has type of: >positionIncrementGap="100" multiValued="true"&

RE: including a minus sign "-" in the token

2017-06-09 Thread Phil Scadden
n Heisey [mailto:apa...@elyograg.org] Sent: Saturday, 10 June 2017 12:43 a.m. To: solr-user@lucene.apache.org Subject: Re: including a minus sign "-" in the token On 6/8/2017 8:39 PM, Phil Scadden wrote: > We have important entities referenced in indexed documents which have > convention

Re: including a minus sign "-" in the token

2017-06-09 Thread Shawn Heisey
On 6/8/2017 8:39 PM, Phil Scadden wrote: > We have important entities referenced in indexed documents which have > convention naming of geographicname-number. Eg Wainui-8 > I want the tokenizer to treat it as Wainui-8 when indexing, and when I search > I want to a q of Wainui-8 (must it be

Re: including a minus sign "-" in the token

2017-06-09 Thread Susheel Kumar
Hi Phil, The WordDelimiterFilterFactory ( https://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.WordDelimiterFilterFactory) can be used to avoid splitting at hypen etc along with WhiteSpaceTokenizerFactory. Use generateWordParts="0"... Thnx On Thu, Jun 8, 2017 at 10:39 PM, Phil