Sounds like you need the edge n-gram filter at index time to index all of
the prefix strings for each term. Just be aware that using an n-gram filter
will explode the size of the index (all the extra terms)

The standard tokenizer and word delimiter filter will split terms on
special characters, so if you need to keep that entire string as one term,
use the whitespace tokenizer. That said, treating hyphen as a word break is
usually not a problem as long as you enable auto phrase generation for the
query parser.

-- Jack Krupansky

On Mon, Oct 5, 2015 at 4:06 AM, Bhaskar <bhaskar1...@gmail.com> wrote:

> Hi,
>
>
> when I type 143-00098 I should get all matched result i.e ( 143-00098,
> 143-000981, 143-0009823). also If i type 143-000 then i should 143-00098,
> 143-0009, 143-0001)
>
> Looks like the searching is treating "-"( hyphen) as subtract or exclude
> pages that contain a specific term..
> In my case it should not exclude string after hyphen.
> can you please help how to escape this.
>
> Thanks a lot.
>
> --
> Keep Smiling....
> Thanks & Regards
> Bhaskar.
> Mobile:9866724142
>

Reply via email to