lucenenet-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From João Carlos Clementoni Silva <joao.si...@m2sys.com.br>
Subject Re: Indexing with mask and searching without
Date Thu, 20 Dec 2012 17:58:28 GMT
Ok. Thank you very much.

Em 20/12/2012 15:46, Alberto León escreveu:
> 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
>>>
>

-- 
Atenciosamente,

( ) Confidencial - (X) Interna - ( ) Pública




Mime
View raw message