lucenenet-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto León <leontis...@gmail.com>
Subject Re: Indexing with mask and searching without
Date Thu, 20 Dec 2012 17:46:29 GMT
I suggets to use regex to format the number without punctuation in formated
phone number.
Later you pass the formated number to the query to search.


2012/12/20 Prescott Nasser <geobmx540@hotmail.com>

> You probably need to write your own analyzer to handle the special case of
> punctuation to suit your need
>
> > Date: Thu, 20 Dec 2012 14:54:50 -0200
> > From: joao.silva@m2sys.com.br
> > To: user@lucenenet.apache.org
> > Subject: Indexing with mask and searching without
> >
> > Hello.
> > I'm using Lucene.Net 3.0.3 and I've got the following problem:
> > I'm indexing a text in a field like this: "Your number is 123.456.789-01
> ".
> > I want to search for "12345678901" or "123456*" but it isn't working.
> > Searching by "123.456*" works.
> > I'm using StandardAnalyzer.
> > What shall I do?
> > Thank you very much.
> >
> > João
> >
>
>



-- 

http://stackoverflow.com/users/690958/alberto-leon

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