lucenenet-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ayoria Leon <ayoria_leon_dor...@hotmail.com>
Subject Re: Parse method doubt
Date Wed, 11 Jan 2017 19:28:34 GMT
Yes. The index exists and it has information. I was using it with Lucene 3.0.3 version. And
it works when the string used to get the Query doesn't contains dashes...


Luis Campos


________________________________
From: Koga, Diego <dikoga@gmail.com>
Sent: Wednesday, January 11, 2017 1:16 PM
To: user@lucenenet.apache.org
Subject: Re: Parse method doubt

Did you recreate the index as well?



Att.,
------------------
Koga, Diego


On Wed, Jan 11, 2017 at 2:04 PM, Ayoria Leon
<ayoria_leon_dorado@hotmail.com> wrote:
> Hi, thank you for your response!
>
>
> I'm using StandardAnalyzer. I tried SimpleAnalyzer instead and it didn't work...
>
>
> Luis Campos
>
> ________________________________
> From: Koga, Diego <dikoga@gmail.com>
> Sent: Wednesday, January 11, 2017 12:52 PM
> To: user@lucenenet.apache.org
> Subject: Re: Parse method doubt
>
> Hi,
>
> When you are creating the QueryParser, which analyzer do you use? You
> might need to use a SimpleAnalyzer...
>
>
>
> Att.,
> ------------------
> Koga, Diego
>
>
> On Wed, Jan 11, 2017 at 1:10 PM, Ayoria Leon
> <ayoria_leon_dorado@hotmail.com> wrote:
>> Hi everyone!
>>
>> My name is Luis Campos and I'm new here. If I'm doing something wrong please let
me now.
>>
>> I need to get a Query from a string. This string represents a GUID.
>> To get this, I'm using the method "Parse" from "QueryParser" class (using Lucene.Net.QueryParsers.Classic).
>>
>> The problem is that the method returns a Query containing 4 terms to find instead
only one.
>> I tried scaping the dashes, and it returns only a term, but deletes the dashes.
>> I need a query containing only a term, containing the dashes.
>>
>> Could anyone help me?
>>
>> Thanks!
>>
>> Luis Campos
>>

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