lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Suggester for Numbers
Date Sun, 11 Dec 2011 15:33:06 GMT
Well, by setting generateNumberParts="0" you've excluded numbers from the
index, so they aren't there for auto-suggest. Try setting it to "1" and
reindexing....

Best
Erick
On Dec 9, 2011 4:57 PM, "Awasthi, Shishir" <shishir.awasthi@baml.com> wrote:

> Is there a way to make suggester return suggestion for numbers also?
>
> My use case is where I have a street address say 123 Street1
> When I type 12 it doesn't return any data using suggester.
>
> Here is my config
>
> <fieldType name="textGPBS" class="solr.TextField"
> positionIncrementGap="100">
>      <analyzer type="index">
>        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
>
>
>       <filter class="solr.WordDelimiterFilterFactory"
>                       splitOnCaseChange="1"
>                       generateWordParts="1"
>                       generateNumberParts="0"
>                       catenateWords="1"
>                       catenateNumbers="0"
>                       catenateAll="1"
>                       preserveOriginal="1"
>                      />
>                <filter class="solr.LowerCaseFilterFactory"/>
>                <!--filter class="solr.EdgeNGramFilterFactory"
> minGramSize="3" maxGramSize="50" side="front"/>
>                <filter class="solr.EnglishPossessiveFilterFactory"/>
>        <filter class="solr.PorterStemFilterFactory"/-->
>
>
>      </analyzer>
>      <analyzer type="query">
>        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
>                <filter class="solr.LowerCaseFilterFactory"/>
>
>              <filter class="solr.WordDelimiterFilterFactory"
>                              splitOnCaseChange="1"
>                              generateWordParts="1"
>                              generateNumberParts="0"
>                              catenateWords="1"
>                              catenateNumbers="0"
>                              catenateAll="1"
>                              preserveOriginal="1"
>                              />
>                <filter class="solr.LowerCaseFilterFactory"/>
>                <!--filter class="solr.EdgeNGramFilterFactory"
> minGramSize="3" maxGramSize="50" side="front"/>
>                <filter class="solr.EnglishPossessiveFilterFactory"/>
>        <filter class="solr.PorterStemFilterFactory"/-->
>      </analyzer>
>    </fieldType>
>
> ----------------------------------------------------------------------
> This message w/attachments (message) is intended solely for the use of the
> intended recipient(s) and may contain information that is privileged,
> confidential or proprietary. If you are not an intended recipient, please
> notify the sender, and then please delete and destroy all copies and
> attachments, and be advised that any review or dissemination of, or the
> taking of any action in reliance on, the information contained in or
> attached to this message is prohibited.
> Unless specifically indicated, this message is not an offer to sell or a
> solicitation of any investment products or other financial product or
> service, an official confirmation of any transaction, or an official
> statement of Sender. Subject to applicable law, Sender may intercept,
> monitor, review and retain e-communications (EC) traveling through its
> networks/systems and may produce any such EC to regulators, law
> enforcement, in litigation and as required by law.
> The laws of the country of each sender/recipient may impact the handling
> of EC, and EC may be archived, supervised and produced in countries other
> than the country in which you are located. This message cannot be
> guaranteed to be secure or free of errors or viruses.
>
> References to "Sender" are references to any subsidiary of Bank of America
> Corporation. Securities and Insurance Products: * Are Not FDIC Insured *
> Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not
> a Condition to Any Banking Service or Activity * Are Not Insured by Any
> Federal Government Agency. Attachments that are part of this EC may have
> additional important disclosures and disclaimers, which you should read.
> This message is subject to terms available at the following link:
> http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender
> you consent to the foregoing.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message