Re:Using Lucene to search live, being-edited documents

2010-12-28 Thread Sean
Does it make any sense? Every time a search result is shown, the original document could have been changed, no matter how fast the indexing speed is. If you can accept this inconsistency, you do not need to index so frequently at all. -- Original -- From: "s

Re:Using Lucene to search live, being-edited documents

2010-12-28 Thread Sean
Does it make any sense? Every time a search result is shown, the original document could have been changed, no matter how fast the indexing speed is. If you can accept this inconsistency, you do not need to index so frequently at all. -- Original -- From: "s

Re: Using Lucene to search live, being-edited documents

2010-12-28 Thread Shashi Kant
> yes, but if they are typing away, they likely aren't also searching at > the same time unless they have two keyboards and four hands... so why > update anything in real time? Presumably the OP meant user-A was editing the doc and other Users , or a monitoring app, are searching said doc simulta

Re: Using Lucene to search live, being-edited documents

2010-12-28 Thread Anshum
Hi Umesh, I'm not really confident that Zoie or anything built on the current version of Lucene would be able to handle search as you type kind of a setup. -- Anshum Gupta http://ai-cafe.blogspot.com On Wed, Dec 29, 2010 at 10:39 AM, Umesh Prasad wrote: > You can also look at Zoie and see if i

Re: Using Lucene to search live, being-edited documents

2010-12-28 Thread Umesh Prasad
You can also look at Zoie and see if it fits your needs. This is a contribution by linkedin. http://snaprojects.jira.com/wiki/display/ZOIE/Home Also look at MemoryIndex .. This is good for creating single document index and searching on it. http://lucene.apache.org/java/3_0_3/api/all/org/apache

Re: Using Lucene to search live, being-edited documents

2010-12-28 Thread Robert Muir
On Tue, Dec 28, 2010 at 5:06 PM, software visualization wrote: > The user is sitting there typing away and of course everything is changing > in real time. This seems to be orthogonal to the idea of a Lucene index > which is costly to construct  and costly to update. > yes, but if they are typing

Re: Using Lucene to search live, being-edited documents

2010-12-28 Thread Anshum
Hi, An update on each word/character typed is not a practical thing to do for lucene (as per the current scheme of things). Though there's something called the Real Time search, which lets you search on an updated document, though the assumption is that the frequency is not as that of a word type.

Re:

2010-12-28 Thread Rida Benjelloun
I bought some items from a commercial site, because of the unique channel of purchases, product prices unexpected, I think you can go to see: elesales.com , high-quality products can also attract you. - To unsubscribe, e-mail: jav

Using Lucene to search live, being-edited documents

2010-12-28 Thread software visualization
This has probably been asked before but I couldn't find it, so... Is it possible / advisable / practical to use Lucene as the basis of a live document search capability? By "live document" I mean a largish document such as a word processor might be able to handle which is being edited currently.

relevant score calculation

2010-12-28 Thread Qi Li
Happy Holidays ! Test case doc1 : test -- one two three doc2 : test, one two three doc3 : one two three Search query : "one two three" by QueryParser and StandardAnalyzer Question: why all of three documents have the same score? I really want the doc3 has higher score becaus

Re: Outof memory exception on using Integer.MaxValue

2010-12-28 Thread Jawahar Lal
Thanks all of you. On 28 December 2010 15:54, Paul Libbrecht wrote: > I also not that this is a fundamental characteristic of the great > performance of Lucene and its related products since it allows cleanly > managed resources. "this" is generally called paging. > > paul > > > Le 28 déc. 2010

Re: Outof memory exception on using Integer.MaxValue

2010-12-28 Thread Paul Libbrecht
I also not that this is a fundamental characteristic of the great performance of Lucene and its related products since it allows cleanly managed resources. "this" is generally called paging. paul Le 28 déc. 2010 à 10:32, Uwe Schindler a écrit : > The TopDocs returning methods are not intended

Re: Outof memory exception on using Integer.MaxValue

2010-12-28 Thread Uwe Schindler
The TopDocs returning methods are not intended to get all results, so Max Int is not a valid value. The maximum hit count allocates a PriorityQueue with so many slots. To retrieve all hits (unsorted) you have to write your own collector. But that is not the natural use case for a full text engin

Re: Outof memory exception on using Integer.MaxValue

2010-12-28 Thread Simon Willnauer
MultiSearcher uses the given integer as the expected number of results and creates a hitqueue for it. Since you are asking for INT_MAX hits Lucene creates a hitQueue for either INT_MAX or maxDoc() documents and preallocates that memory. So in the worst case it creates an Object array with INTEGER_M

Re: Outof memory exception on using Integer.MaxValue

2010-12-28 Thread Jawahar Lal
I am using lucene 3.0.3 On 28 December 2010 14:06, Laxmilal Menariya wrote: > Which version you are trying of lucene ? > > On Tue, Dec 28, 2010 at 12:30 PM, Jawahar Lal wrote: > > > Hi, > > > > I am using multiSearcher as > > > > objMultiSearcher.search(query,null,Integer.MaxValue); > > > > I

Re: Outof memory exception on using Integer.MaxValue

2010-12-28 Thread Laxmilal Menariya
Which version you are trying of lucene ? On Tue, Dec 28, 2010 at 12:30 PM, Jawahar Lal wrote: > Hi, > > I am using multiSearcher as > > objMultiSearcher.search(query,null,Integer.MaxValue); > > I searched a query, which should & does not return any hit. As I run the > query, the above statement