Re: Is Lucene right for my app?

2005-09-18 Thread Kevin Stembridge
Hi Jeff and Doug, I've just finished reading Chapter 1 of Lucene in Action (sample chapter from Manning) and I've ordered a copy. The sample chapter was pretty useful in giving me an idea of how Lucene will fit into my app and I think it'll do the trick nicely with a bit of elbow grease on my p

Re: Lucene database bindings

2005-09-18 Thread Ray Tsang
I must admit that I have not downloaded the source yet. But a quick question, does it deal w/ aggregate functions and group by clauses? Thanks! Ray, On 9/17/05, markharw00d <[EMAIL PROTECTED]> wrote: > >>Basically your lucene_query function will return a true/false in one > of the query predica

Re: Sort by relevance+distance

2005-09-18 Thread Jeff Rodenburg
I like Erik's suggestion here as a starting point. I would guess you might find some direction in the Scorer class, but I haven't gone through this in detail. Conceptually a sliding weight based on proximity sounds correct... -- jeff On Sep 18, 2005, at 3:39 PM, James Huang wrote: > > So the

Re: Is Lucene right for my app?

2005-09-18 Thread Doug Cutting
Jeff Rodenburg wrote: My suggestion to you: pick up a copy of Lucene in Action. [ ...] The authors lurk on this list. They're pretty chatty for lurkers. http://en.wikipedia.org/wiki/Lurker But good advice nonetheless! Cheers, Doug ---

Re: runtime boost of differnet indexs in ParallelMultiSearcher

2005-09-18 Thread Erik Hatcher
On Sep 18, 2005, at 7:52 PM, Philip Peterson wrote: Is there a way to, at run time, boost one index over another in a ParallelMultiSearcher. So if I have 4 indexes a,b,c,d and user A searches their results lean toward index a and user B searches his results are boosted toward index b etc. Than

runtime boost of differnet indexs in ParallelMultiSearcher

2005-09-18 Thread Philip Peterson
Hello, Is there a way to, at run time, boost one index over another in a ParallelMultiSearcher. So if I have 4 indexes a,b,c,d and user A searches their results lean toward index a and user B searches his results are boosted toward index b etc. Thanks so much in advance, I tried to see if there

Re: Sort by relevance+distance

2005-09-18 Thread Erik Hatcher
On Sep 18, 2005, at 3:39 PM, James Huang wrote: So the question is, is there a way to overriding score calculation at runtime? In the lucene/search package, I see interfaces like Scorer, Weight and methods like Query.createWeight(). This looks promising. There are several ways to adjust scorin

Re: Is Lucene right for my app?

2005-09-18 Thread Jeff Rodenburg
Kevin - You've come to the right list to get information to help you make a decision. That said, the responsible answer to your question will be "it depends". The supporter in me says Lucene is your best choice, hands down. Your questions aren't as straightforward as you might expect. Lucene is

Is Lucene right for my app?

2005-09-18 Thread Kevin Stembridge
Hi folks, I'd like to add seach functionality to a homegrown webapp I'm building that will store and display news articles. I've been looking through the Lucene Wiki, FAQ and tutorials and it looks like it will be able to provide the functionality I'll need. But before I commit to a given tech

Re: Sort by relevance+distance

2005-09-18 Thread James Huang
--- Jeff Rodenburg <[EMAIL PROTECTED]> wrote: > trimming the post further: > > On 9/18/05, James Huang <[EMAIL PROTECTED]> wrote: > > > > >The problem is quite generic, I believe. What I > like to do is similar to > > LIA-ch6, i.e. to find a "good Chinese Hunan-style > restaurant near me." I

Re: Sort by relevance+distance

2005-09-18 Thread Jeff Rodenburg
trimming the post further: On 9/18/05, James Huang <[EMAIL PROTECTED]> wrote: > > >The problem is quite generic, I believe. What I like to do is similar to > LIA-ch6, i.e. to find a "good Chinese Hunan-style restaurant near me." I > prefer Hunan-style; however, if a good Human-style one is 12 m

Re: Sort by relevance+distance

2005-09-18 Thread James Huang
See comments below. --- Erik Hatcher <[EMAIL PROTECTED]> wrote: > [trimming the post a bit] > > On Sep 18, 2005, at 11:51 AM, James Huang wrote: > > The problem is quite generic, I believe. What I > like > > to do is similar to LIA-ch6, i.e. to find a "good > > Chinese Hunan-style restaurant nea

Re: Sort by relevance+distance

2005-09-18 Thread Erik Hatcher
[trimming the post a bit] On Sep 18, 2005, at 11:51 AM, James Huang wrote: The problem is quite generic, I believe. What I like to do is similar to LIA-ch6, i.e. to find a "good Chinese Hunan-style restaurant near me." I prefer Hunan-style; however, if a good Human-style one is 12 miles, where t

Re: Sort by relevance+distance

2005-09-18 Thread Erik Hatcher
On Sep 18, 2005, at 11:10 AM, James Huang wrote: --- Erik Hatcher <[EMAIL PROTECTED]> wrote: On Sep 18, 2005, at 10:24 AM, James Huang wrote: --- Erik Hatcher <[EMAIL PROTECTED]> wrote: Get back to using your DistanceComparatorSource, and couple that with a SortField.FIELD_

Re: Sort by relevance+distance

2005-09-18 Thread James Huang
--- Erik Hatcher <[EMAIL PROTECTED]> wrote: > > On Sep 18, 2005, at 10:24 AM, James Huang wrote: > > > --- Erik Hatcher <[EMAIL PROTECTED]> > wrote: > > > > > >> Get back to using your DistanceComparatorSource, > and > >> couple that with > >> a SortField.FIELD_SCORE, like this: > >> > >> Sort

Re: Sort by relevance+distance

2005-09-18 Thread Erik Hatcher
On Sep 18, 2005, at 10:24 AM, James Huang wrote: --- Erik Hatcher <[EMAIL PROTECTED]> wrote: Get back to using your DistanceComparatorSource, and couple that with a SortField.FIELD_SCORE, like this: Sort sort = new Sort(new SortField[] {new SortField("location", new DistanceCompara

Re: Sort by relevance+distance

2005-09-18 Thread James Huang
--- Erik Hatcher <[EMAIL PROTECTED]> wrote: > Get back to using your DistanceComparatorSource, and > couple that with > a SortField.FIELD_SCORE, like this: > > Sort sort = new Sort(new SortField[] {new > SortField("location", > new DistanceComparatorSource( you need>)), > SortField.F

Issue with sounds-like queries

2005-09-18 Thread Jayakumar.V
Hi, I'm facing an issue with sounds-like queries. I've experimented with both Apache Codec & the Phonetix library from Tangentum Technologies (http://www.tangentum.biz/en/products/phonetix/faqs/index.html ) to see if I could sort out the issue somehow using either of the libraries. I've an

Re: Sort by relevance+distance

2005-09-18 Thread Erik Hatcher
On Sep 17, 2005, at 7:00 PM, James Huang wrote: I use a custom collector: [...] Then, use IndexSearcher.search(qry, collector); So what happens if you get 10M results from a search? This seems to work. What I wish for is that sorting is done by the search engine itself, hoping for a bet