Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: General

A problem of searching word "3D" with Lucene.net

 

 

Lucene general RSS feed   Index | Next | Previous | View Threaded


ruanqizhen at gmail

Jan 25, 2010, 5:25 PM

Post #1 of 8 (896 views)
Permalink
A problem of searching word "3D" with Lucene.net

Hi All,

I have created an index file with CLucene. I'm now using Luenen.net 2.3.2
to query the index. While searching key word "3D", it returns 0 results.
But my target file do have includes words like "3D model".
If I search a pure numeric, it do return correct results.

Anyone knows how to search "3D"?

Thanks a lot!
Qizhen
--
View this message in context: http://old.nabble.com/A-problem-of-searching-word-%223D%22-with-Lucene.net-tp27316636p27316636.html
Sent from the Lucene - General mailing list archive at Nabble.com.


skant at sloan

Jan 26, 2010, 1:56 AM

Post #2 of 8 (858 views)
Permalink
Re: A problem of searching word "3D" with Lucene.net [In reply to]

Have you tried querying the index using Luke? Check which analyzer you used....

On Mon, Jan 25, 2010 at 8:25 PM, ruanqizhen <ruanqizhen [at] gmail> wrote:
>
> Hi All,
>
> I have created an index file with CLucene.  I'm now using Luenen.net 2.3.2
> to query the index.  While searching key word "3D", it returns 0 results.
> But my target file do have includes words like "3D model".
> If I search a pure numeric, it do return correct results.
>
> Anyone knows how to search "3D"?
>
> Thanks a lot!
> Qizhen
> --
> View this message in context: http://old.nabble.com/A-problem-of-searching-word-%223D%22-with-Lucene.net-tp27316636p27316636.html
> Sent from the Lucene - General mailing list archive at Nabble.com.
>
>


bernd.fondermann at googlemail

Jan 26, 2010, 1:58 AM

Post #3 of 8 (851 views)
Permalink
Re: A problem of searching word "3D" with Lucene.net [In reply to]

On Tue, Jan 26, 2010 at 02:25, ruanqizhen <ruanqizhen [at] gmail> wrote:
>
> Hi All,
>
> I have created an index file with CLucene.  I'm now using Luenen.net 2.3.2
> to query the index.  While searching key word "3D", it returns 0 results.
> But my target file do have includes words like "3D model".
> If I search a pure numeric, it do return correct results.
>
> Anyone knows how to search "3D"?

What Analyzer did you use to create the index?
Some Analyzers remove digits when creating the indexed tokens.

Bernd

>
> Thanks a lot!
> Qizhen
> --
> View this message in context: http://old.nabble.com/A-problem-of-searching-word-%223D%22-with-Lucene.net-tp27316636p27316636.html
> Sent from the Lucene - General mailing list archive at Nabble.com.
>
>


ruanqizhen at gmail

Jan 26, 2010, 4:43 PM

Post #4 of 8 (852 views)
Permalink
Re: A problem of searching word "3D" with Lucene.net [In reply to]

I used the standard analyzer for both indexing and searching.



Bernd Fondermann-2 wrote:
>
> On Tue, Jan 26, 2010 at 02:25, ruanqizhen <ruanqizhen [at] gmail> wrote:
>>
>> Hi All,
>>
>> I have created an index file with CLucene.  I'm now using Luenen.net
>> 2.3.2
>> to query the index.  While searching key word "3D", it returns 0 results.
>> But my target file do have includes words like "3D model".
>> If I search a pure numeric, it do return correct results.
>>
>> Anyone knows how to search "3D"?
>
> What Analyzer did you use to create the index?
> Some Analyzers remove digits when creating the indexed tokens.
>
> Bernd
>
>>
>> Thanks a lot!
>> Qizhen
>> --
>> View this message in context:
>> http://old.nabble.com/A-problem-of-searching-word-%223D%22-with-Lucene.net-tp27316636p27316636.html
>> Sent from the Lucene - General mailing list archive at Nabble.com.
>>
>>
>
>

--
View this message in context: http://old.nabble.com/A-problem-of-searching-word-%223D%22-with-Lucene.net-tp27316636p27332425.html
Sent from the Lucene - General mailing list archive at Nabble.com.


ruanqizhen at gmail

Jan 26, 2010, 4:45 PM

Post #5 of 8 (847 views)
Permalink
Re: A problem of searching word "3D" with Lucene.net [In reply to]

I didn't try Luke. But I tried CLucene for searching. CLucene can return
results for 3D. So, this could be Lucene.net problem only.


Shashi Kant-2 wrote:
>
> Have you tried querying the index using Luke? Check which analyzer you
> used....
>
> On Mon, Jan 25, 2010 at 8:25 PM, ruanqizhen <ruanqizhen [at] gmail> wrote:
>>
>> Hi All,
>>
>> I have created an index file with CLucene.  I'm now using Luenen.net
>> 2.3.2
>> to query the index.  While searching key word "3D", it returns 0 results.
>> But my target file do have includes words like "3D model".
>> If I search a pure numeric, it do return correct results.
>>
>> Anyone knows how to search "3D"?
>>
>> Thanks a lot!
>> Qizhen
>> --
>> View this message in context:
>> http://old.nabble.com/A-problem-of-searching-word-%223D%22-with-Lucene.net-tp27316636p27316636.html
>> Sent from the Lucene - General mailing list archive at Nabble.com.
>>
>>
>
>

--
View this message in context: http://old.nabble.com/A-problem-of-searching-word-%223D%22-with-Lucene.net-tp27316636p27332439.html
Sent from the Lucene - General mailing list archive at Nabble.com.


digydigy at gmail

Jan 27, 2010, 2:22 AM

Post #6 of 8 (845 views)
Permalink
Re: A problem of searching word "3D" with Lucene.net [In reply to]

If you index the string "3d model" using CLucene and use Luke, you will see
that there are 3 terms in the index "3" , "d" and "model"
(it has to be "3d" and "model").
So, the problem is due to the incompatible StandardAnalyzer of CLucene.

DIGY.

On Wed, Jan 27, 2010 at 2:45 AM, ruanqizhen <ruanqizhen [at] gmail> wrote:

>
> I didn't try Luke. But I tried CLucene for searching. CLucene can return
> results for 3D. So, this could be Lucene.net problem only.
>
>
> Shashi Kant-2 wrote:
> >
> > Have you tried querying the index using Luke? Check which analyzer you
> > used....
> >
> > On Mon, Jan 25, 2010 at 8:25 PM, ruanqizhen <ruanqizhen [at] gmail>
> wrote:
> >>
> >> Hi All,
> >>
> >> I have created an index file with CLucene. I'm now using Luenen.net
> >> 2.3.2
> >> to query the index. While searching key word "3D", it returns 0
> results.
> >> But my target file do have includes words like "3D model".
> >> If I search a pure numeric, it do return correct results.
> >>
> >> Anyone knows how to search "3D"?
> >>
> >> Thanks a lot!
> >> Qizhen
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/A-problem-of-searching-word-%223D%22-with-Lucene.net-tp27316636p27316636.html
> >> Sent from the Lucene - General mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/A-problem-of-searching-word-%223D%22-with-Lucene.net-tp27316636p27332439.html
> Sent from the Lucene - General mailing list archive at Nabble.com.
>
>


ruanqizhen at gmail

Jan 28, 2010, 12:35 AM

Post #7 of 8 (825 views)
Permalink
Re: A problem of searching word "3D" with Lucene.net [In reply to]

I see.

Whose behavior is correct? Lucene.net, CLucene is correct, or there is not a
standard at all.

Thanks,
Qizhen


Digy wrote:
>
> If you index the string "3d model" using CLucene and use Luke, you will
> see
> that there are 3 terms in the index "3" , "d" and "model"
> (it has to be "3d" and "model").
> So, the problem is due to the incompatible StandardAnalyzer of CLucene.
>
> DIGY.
>
> On Wed, Jan 27, 2010 at 2:45 AM, ruanqizhen <ruanqizhen [at] gmail> wrote:
>
>>
>> I didn't try Luke. But I tried CLucene for searching. CLucene can
>> return
>> results for 3D. So, this could be Lucene.net problem only.
>>
>>
>> Shashi Kant-2 wrote:
>> >
>> > Have you tried querying the index using Luke? Check which analyzer you
>> > used....
>> >
>> > On Mon, Jan 25, 2010 at 8:25 PM, ruanqizhen <ruanqizhen [at] gmail>
>> wrote:
>> >>
>> >> Hi All,
>> >>
>> >> I have created an index file with CLucene. I'm now using Luenen.net
>> >> 2.3.2
>> >> to query the index. While searching key word "3D", it returns 0
>> results.
>> >> But my target file do have includes words like "3D model".
>> >> If I search a pure numeric, it do return correct results.
>> >>
>> >> Anyone knows how to search "3D"?
>> >>
>> >> Thanks a lot!
>> >> Qizhen
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/A-problem-of-searching-word-%223D%22-with-Lucene.net-tp27316636p27316636.html
>> >> Sent from the Lucene - General mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/A-problem-of-searching-word-%223D%22-with-Lucene.net-tp27316636p27332439.html
>> Sent from the Lucene - General mailing list archive at Nabble.com.
>>
>>
>
>

--
View this message in context: http://old.nabble.com/A-problem-of-searching-word-%223D%22-with-Lucene.net-tp27316636p27352654.html
Sent from the Lucene - General mailing list archive at Nabble.com.


digydigy at gmail

Jan 28, 2010, 1:48 AM

Post #8 of 8 (834 views)
Permalink
Re: A problem of searching word "3D" with Lucene.net [In reply to]

Lucene.Net works just as Lucene Java. Problem is with CLucene.
DIGY

On Thu, Jan 28, 2010 at 10:35 AM, ruanqizhen <ruanqizhen [at] gmail> wrote:

>
> I see.
>
> Whose behavior is correct? Lucene.net, CLucene is correct, or there is not
> a
> standard at all.
>
> Thanks,
> Qizhen
>
>
> Digy wrote:
> >
> > If you index the string "3d model" using CLucene and use Luke, you will
> > see
> > that there are 3 terms in the index "3" , "d" and "model"
> > (it has to be "3d" and "model").
> > So, the problem is due to the incompatible StandardAnalyzer of CLucene.
> >
> > DIGY.
> >
> > On Wed, Jan 27, 2010 at 2:45 AM, ruanqizhen <ruanqizhen [at] gmail>
> wrote:
> >
> >>
> >> I didn't try Luke. But I tried CLucene for searching. CLucene can
> >> return
> >> results for 3D. So, this could be Lucene.net problem only.
> >>
> >>
> >> Shashi Kant-2 wrote:
> >> >
> >> > Have you tried querying the index using Luke? Check which analyzer you
> >> > used....
> >> >
> >> > On Mon, Jan 25, 2010 at 8:25 PM, ruanqizhen <ruanqizhen [at] gmail>
> >> wrote:
> >> >>
> >> >> Hi All,
> >> >>
> >> >> I have created an index file with CLucene. I'm now using Luenen.net
> >> >> 2.3.2
> >> >> to query the index. While searching key word "3D", it returns 0
> >> results.
> >> >> But my target file do have includes words like "3D model".
> >> >> If I search a pure numeric, it do return correct results.
> >> >>
> >> >> Anyone knows how to search "3D"?
> >> >>
> >> >> Thanks a lot!
> >> >> Qizhen
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://old.nabble.com/A-problem-of-searching-word-%223D%22-with-Lucene.net-tp27316636p27316636.html
> >> >> Sent from the Lucene - General mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/A-problem-of-searching-word-%223D%22-with-Lucene.net-tp27316636p27332439.html
> >> Sent from the Lucene - General mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/A-problem-of-searching-word-%223D%22-with-Lucene.net-tp27316636p27352654.html
> Sent from the Lucene - General mailing list archive at Nabble.com.
>
>

Lucene general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.