Re: Using coord of one BooleanQuery as a multiplier for its siblings

2012-09-07 Thread pranshu
Ah yes, that is what I meant by coord = 1. Coord is disabled for BQ0 and BQ2. -- View this message in context: http://lucene.472066.n3.nabble.com/Using-coord-of-one-BooleanQuery-as-a-multiplier-for-its-siblings-tp4003736p4006220.html Sent from the Lucene - Java Users mailing list archive at Nab

Re: Negative query issue

2012-09-07 Thread Erick Erickson
The first thing you should do is enumerate what you expect and what you get. We have no way of knowing what expectations of yours are not being met. Here's an interesting blog you might want to read: http://searchhub.org/dev/2011/12/28/why-not-and-or-and-not/ Best Erick On Wed, Sep 5, 2012 at 8:

Re: Finding the most matching (cf. similar) document to another one

2012-09-07 Thread Jochen Hebbrecht
Thanks! Works like a charm :-)! 2012/9/7 Trejkaz > On Fri, Sep 7, 2012 at 6:12 PM, Jochen Hebbrecht > wrote: > > Hi qibaoyuan, > > > > I tried your second solution, using the scoring data. I think in this > way, > > I could use MoreLikeThis. All documents with a score > X are a possible > > mat

Re: Finding the most matching (cf. similar) document to another one

2012-09-07 Thread Trejkaz
On Fri, Sep 7, 2012 at 6:12 PM, Jochen Hebbrecht wrote: > Hi qibaoyuan, > > I tried your second solution, using the scoring data. I think in this way, > I could use MoreLikeThis. All documents with a score > X are a possible > match :-). FWIW, there is also BooleanQuery#setMinimumNumberShouldMatc

Re: Packaging lucene

2012-09-07 Thread Ian Lea
tg2exe as in code.google.com/p/tg2exe/ "Make TurboGears project to the Stand Alone Windows ..."? Are you sure you're posting this question to the correct list? -- Ian. On Wed, Sep 5, 2012 at 3:56 PM, Antony Joseph wrote: > Hello, > > I have upgraded my lucene from 2.4.0 to 3.6.0, While i am pa

Re: Negative query issue

2012-09-07 Thread Ian Lea
http://wiki.apache.org/lucene-java/LuceneFAQ#Why_am_I_getting_no_hits_.2BAC8_incorrect_hits.3F -- Ian. On Wed, Sep 5, 2012 at 4:24 PM, Ramprakash Ramamoorthy wrote: > Take a look at this query : > > -HOSTNAME:ram AND SEVERITY:information > > The above query isn't giving me the intended results

Re: How to create a Lucene in-memory index at webapp deployment time

2012-09-07 Thread Ian Lea
You can do stuff with scopes and contexts and web.xml and whatever (google something like tomcat application scope). Or use some static classes or singletons to look after the single index. -- Ian. On Fri, Sep 7, 2012 at 6:10 AM, Kasun Perera wrote: > I have a web java/jsp application running

Re: Finding the most matching (cf. similar) document to another one

2012-09-07 Thread Jochen Hebbrecht
Hi qibaoyuan, I tried your second solution, using the scoring data. I think in this way, I could use MoreLikeThis. All documents with a score > X are a possible match :-). Thanks! Jochen 2012/9/7 qibaoyuan > > MAYBE you could alter MLT to make him working on AND > operator.But,

Re:Finding the most matching (cf. similar) document to another one

2012-09-07 Thread qibaoyuan
MAYBE you could alter MLT to make him working on AND operator.But,i don't think thers is anything wrong with using OR opearator.Lucne will rank all the docs depending on the undeylying similarity algorithem(SVM,BM25 etc.).Just as you case,Docs2 will be rank firstly because it mat

Finding the most matching (cf. similar) document to another one

2012-09-07 Thread Jochen Hebbrecht
Hi, Imagine you are indexing the following documents (every line is stored in 1 single field, analyzed with the default StandardAnalyzer): - Doc 1: restaurant 't Robbeke fish passoa beer 15 EUR 5 EUR 2 EUR total 22 EUR - Doc 2: restaurant De Genieter scampi's fish sticks cola fanta 18 EUR 15 EUR 2