Re: Custom Search algorithm integration

2007-10-06 Thread Prakash Prabhu
Yes, image field is binary. However, image size is not more than 1KB. We would use a combination of text search to narrow down the results. But once we get the results, we would want to search all images (within the above resultset) with the user given image file. Ideally, your 2nd approac

Re: Group of documents.

2007-10-06 Thread Raghu Ram
But then how can i search for feeds ??? On 10/6/07, Alf Eaton <[EMAIL PROTECTED]> wrote: > > Raghu Ram wrote: > > Hi, > > We have an application in which we want to index feeds. Each feed > is a > > collection of articles and some other metadata. The problem is that > > sometimes we want to

norms(String field, byte[] bytes, int offset)

2007-10-06 Thread Karl Wettin
I'm confused by this method. Why is the length set to maxDoc() and not bytes.length? This means that the following snippet will throw an ArrayIndexOutOfBoundsException in most cases: byte[] b = new byte[1]; ir.norms(field, b, doc); /** Read norms into a pre-allocated array. */ public s

Re: Custom Search algorithm integration

2007-10-06 Thread Grant Ingersoll
I presume that the image field is a binary field, right? I can think of a couple of things that _may_ work for you: 1. You create a dummy token on the "image" field, and then store the image data as a payload on that token. Then you can use the payload mechanism to score the field by overri

Re: Group of documents.

2007-10-06 Thread Alf Eaton
Raghu Ram wrote: > Hi, > We have an application in which we want to index feeds. Each feed is a > collection of articles and some other metadata. The problem is that > sometimes we want to search for feeds and sometimes for articles. As far as > I know lucene doesn't provide any abstraction f

Re: Custom Search algorithm integration

2007-10-06 Thread [EMAIL PROTECTED]
Thank you Grant but FuntionQuery doesnt solve the problem. Looks like I didnt explain the problem properly. Let me try it again: 1. We have a document in which there are 4 text fields and a image field. 2. We have a special algorithm to perform match based on the image. In the sense, if 2 images

Re: Help with Lucene Indexer crash recovery

2007-10-06 Thread Michael McCandless
"vivek sar" <[EMAIL PROTECTED]> wrote: > Sorry, I'm using Lucene 2.2. We are using Lucene to index our database > (Oracle) into documents for full-text search feature. Here is the > process of indexing, > > 1) Have two IndexWriters which run in two different threads and write > to two different di

Re: lucene optimal configuration

2007-10-06 Thread Michael McCandless
For tips on improving indexing performance, start here: http://wiki.apache.org/lucene-java/ImproveIndexingSpeed And for searching performance, here: http://wiki.apache.org/lucene-java/ImproveSearchingSpeed Mike "Mohammad Norouzi" <[EMAIL PROTECTED]> wrote: > Hi everybody, > I always used

Re: lucene optimal configuration

2007-10-06 Thread Chris Lu
If in general, the default values should be good for general purpose. It'll be good to know which part you want to optimize, and exactly what problem you want to solve. But even you get very specific, nobody can tell you what's the best configuration. You have to try to adjust most variables to fi

lucene optimal configuration

2007-10-06 Thread Mohammad Norouzi
Hi everybody, I always used lucene with its default configuration values.now I want to know if there is any document in which initial values for configuring a Lucene project is specified (values for Lucene, App Server and JDK). if anyone had such experience on achieving best performance of Lucene