You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Thomas Krämer <kr...@smail.uni-koeln.de> on 2003/11/11 20:37:58 UTC

fuzzy searches

Hello ,

now that the topic is clustering methods: has there been any effort in 
implementing Latent semantic indexing in Lucene? Google only indicates 
someone else asking this in february.
Is there an overview of the structure of the index of lucene despite of 
the javadoc or any other fast access to understanding what happens 
inside lucene?

regards

thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: fuzzy searches

Posted by Gerret Apelt <ga...@cs.waikato.ac.nz>.
Thomas Krämer wrote:

>
> Is there an overview of the structure of the index of lucene despite 
> of the javadoc or any other fast access to understanding what happens 
> inside lucene?
>
You mean something like this?:

http://jakarta.apache.org/lucene/docs/fileformats.html

cheers,
Gerret


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: fuzzy searches

Posted by petite_abeille <pe...@mac.com>.
On Nov 13, 2003, at 15:09, Thomas Krämer wrote:

> i am not familiar with intelectual property law, but it sounds 
> somewhat strange to me, that it is possible to patent an abstract idea 
> of hom extracting information from data.

The process of "Spreading Cream Cheese On Bagels" (C) (R) (TM)  has 
been patented. The end is near.

patent, noun The notion that you can protect from the future what you 
stole from the past.

http://www.eod.com/devil/archive/copyright.html

Cheers,

PA.


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Query Filters on term A in query "A AND (B OR C OR D)"

Posted by Jie Yang <jy...@yahoo.co.uk>.
Can anyone clarify a bit more ont he issue below? I
don't seems can find out any hints in this list.

Much Thanks..

> > Again, I still feel a bit curious and want to find

> > out does lucene do (or in the future) pre-filter 
> > on "AND join conditions". For example, A AND (B OR

> > C OR D). if A finds 100 docs out of 1 million, can
> > lucene restrict the searchs on B,C,D only within 
> > the 100 docs found? Thus boost performance

> Ah, this was mentioned recently on the list.
> I don't remember what the conclusion was, but 
> Erik did remind us of Lucene's filters which can 
> help in some situations.
> 
> Otis 

________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: Poor Performance when searching for 500+ terms

Posted by Otis Gospodnetic <ot...@yahoo.com>.
> I am not using RAMDirectory due to the large size of
> index file. the index generated on hard disc is 1.57G
> for 1 million documents, each document has average 500
> terms. I am using Field.UnStored(fieldName, terms), so
> i beliece I am not storing the documents, just the
> index. (is that right?) is there anyway to reduce the

Correct.

> index size created? also What is the maximum size of
> data can be stored in RAMDirectory? I suppose I could

Depends on how much RAM you have.

> get a 10G RAM solaris box, but would that be advisable
> say storing 2-3G of index data in memory?

Yes, why not.

> Also, what
> is the performance boost factor when RAMDirectory
> comparing to FSDirectory. Are we taling about > 100%
> here?

I don't know if I can qualify it like that, but one of the Lucene
articles (Resources section on Lucene's site) covers RAMDirectory and
shows performance differences.

> On your 2nd and 3rd suggestion, I probably run the
> latest code that includes the fix by Dmitry
> Serebrennikov, the build was checked out from CVS
> yesterday. and I used a QueryParser similar to the one
> used in the demo code.

Dmitry's code was never included in CVS.  I don't know/remember why.

> Again, I still feel a bit curious and want to find out
> does lucene do (or in the future) pre-filter on "AND
> join conditions". For example, A AND (B OR C OR D). if
> A finds 100 docs out of 1 million, can lucene restrict
> the searchs on B,C,D only within the 100 docs found?

Ah, this was mentioned recently on the list.
I don't remember what the conclusion was, but Erik did remind us of
Lucene's filters which can help in some situations.

Otis


> >Response to: Poor Performance when searching for 500+
> >terms (Jie Yang) 
> 
> >From: Julien Nioche <Ju...@lingway.com>
> Subject: Poor Performance when searching for 500+
> terms
> >Date: Thu, 13 Nov 2003 12:45:50 +0100
> >Content-Type: text/plain; charset="iso-8859-1"
> >
> >Hello,
> >
> >Since there are a lot of Term objects in your Query, 
> >your application must
> >spend a lot of time collecting information about 
> >those Terms.
> >
> >1/ Do you use RAMDirectory? Loading the whole 
> >Directory into memory will
> >increase speed - your index must not be too big
> though
> >
> >2/ You are probably not using the QueryParser - so 
> >when you are building the
> >Query you could sort the Term objects inside a 
> >BooleanQuery. Sorting the
> >Terms will reduce jumps on disk. I have no benchmarks
> 
> >for this, but
> >logically, it should have some positive effect when 
> >using FSDirectory. Am I wrong?
> 
> >3/ There was a patch submitted by Dmitry
> Serebrennikov
>
>(http://www.mail-archive.com/lucene-dev@jakarta.apache.org/msg02762.html)
> >which reduced garbage collecting by limiting the 
> >creation of temporary Term objects. This patch has 
> >not been included in Lucene code (a bug in it?).
> >
> >Hope it helps.
> >
> >Julien
> 
> 
>
________________________________________________________________________
> Want to chat instantly with your online friends?  Get the FREE Yahoo!
> Messenger http://mail.messenger.yahoo.co.uk
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: Poor Performance when searching for 500+ terms

Posted by Jie Yang <jy...@yahoo.co.uk>.
Thanks Julian

I am not using RAMDirectory due to the large size of
index file. the index generated on hard disc is 1.57G
for 1 million documents, each document has average 500
terms. I am using Field.UnStored(fieldName, terms), so
i beliece I am not storing the documents, just the
index. (is that right?) is there anyway to reduce the
index size created? also What is the maximum size of
data can be stored in RAMDirectory? I suppose I could
get a 10G RAM solaris box, but would that be advisable
say storing 2-3G of index data in memory? Also, what
is the performance boost factor when RAMDirectory
comparing to FSDirectory. Are we taling about > 100%
here?

On your 2nd and 3rd suggestion, I probably run the
latest code that includes the fix by Dmitry
Serebrennikov, the build was checked out from CVS
yesterday. and I used a QueryParser similar to the one
used in the demo code.

Again, I still feel a bit curious and want to find out
does lucene do (or in the future) pre-filter on "AND
join conditions". For example, A AND (B OR C OR D). if
A finds 100 docs out of 1 million, can lucene restrict
the searchs on B,C,D only within the 100 docs found?

Thanks a lot.



 



>Response to: Poor Performance when searching for 500+
>terms (Jie Yang) 

>From: Julien Nioche <Ju...@lingway.com>
Subject: Poor Performance when searching for 500+
terms
>Date: Thu, 13 Nov 2003 12:45:50 +0100
>Content-Type: text/plain; charset="iso-8859-1"
>
>Hello,
>
>Since there are a lot of Term objects in your Query, 
>your application must
>spend a lot of time collecting information about 
>those Terms.
>
>1/ Do you use RAMDirectory? Loading the whole 
>Directory into memory will
>increase speed - your index must not be too big
though
>
>2/ You are probably not using the QueryParser - so 
>when you are building the
>Query you could sort the Term objects inside a 
>BooleanQuery. Sorting the
>Terms will reduce jumps on disk. I have no benchmarks

>for this, but
>logically, it should have some positive effect when 
>using FSDirectory. Am I wrong?

>3/ There was a patch submitted by Dmitry
Serebrennikov
>(http://www.mail-archive.com/lucene-dev@jakarta.apache.org/msg02762.html)
>which reduced garbage collecting by limiting the 
>creation of temporary Term objects. This patch has 
>not been included in Lucene code (a bug in it?).
>
>Hope it helps.
>
>Julien


________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: fuzzy searches

Posted by Thomas Krämer <kr...@smail.uni-koeln.de>.
Hi Bruce,

i am not familiar with intelectual property law, but it sounds somewhat 
strange to me, that it is possible to patent an abstract idea of hom 
extracting information from data.

i can understand, that it is forbidden to reuse/modify sourcecode of a 
given implementation of lsi, but why shouldn´t i build my own indexer, 
if able to do so?

btw, do you know the owner of the patent?


thanks a lot


thomas



---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: fuzzy searches

Posted by petite_abeille <pe...@mac.com>.
On Nov 11, 2003, at 21:02, Bruce Ritchie wrote:

> Just a note the LSI is encumbered by US patents 4,839,853 and 
> 5,301,109. It would be wise to make sure that any implementation is 
> either blessed by the patent holders or does not infringe on the 
> patents.

Since when did developers turn into armchair IP lawyers? Is it a 
national game?

PA.


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: fuzzy searches

Posted by Bruce Ritchie <br...@jivesoftware.com>.
Thomas Krämer wrote:
> now that the topic is clustering methods: has there been any effort in 
> implementing Latent semantic indexing in Lucene? Google only indicates 
> someone else asking this in february.

Just a note the LSI is encumbered by US patents 4,839,853 and 5,301,109. It would be wise to make 
sure that any implementation is either blessed by the patent holders or does not infringe on the 
patents.


Regards,

Bruce Ritchie


Re: fuzzy searches

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Tuesday, November 11, 2003, at 02:37  PM, Thomas Krämer wrote:
> Is there an overview of the structure of the index of lucene despite 
> of the javadoc or any other fast access to understanding what happens 
> inside lucene?

Here is what is inside a Lucene index:  
http://jakarta.apache.org/lucene/docs/fileformats.html



---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org