Re: MultiFieldQueryParser - using a different analyzer per field...

2009-05-01 Thread Erick Erickson
H... If that's the case, would you suggest copying the relevant fields, using the different analyzers at index time? Then perhaps combining the two Queries returned from the MFQP into two clauses in a BooleanQuery? Or is there a more elegant way? Because you're right of course, trying to use t

Re: lucene score and float precision

2009-05-01 Thread Chris Hostetter
: in some cases we have the problem that for a document the ScoreDoc score : differs at the last digit of the float from the score reported by the : explanation functionality of lucene. For example: : : ScoreDoc: 16.770466 -- Explanation: 16.770468 = (MATCH) sum of: ... : ScoreDoc: 21.118656 --

RE: MultiFieldQueryParser - using a different analyzer per field...

2009-05-01 Thread Uwe Schindler
Hi Erick, this is not what he wants to do, I think. He wants both things at once: One query string that searches both fields with different analyzers. For searching more than one field at once, he can use MultiFieldQueryParser, but not if the analyzer for both fields is different (because the que

Re: How to het the score in percentage

2009-05-01 Thread Chris Hostetter
: here ie, in our existing system we are showing the search score in : percenetage but lucene provides the search score in numbers which is derived : from some internal logic. Can anybody give some tips for converting the : lucene score to percentage or is there any way to retrive the score as : p

Re: SpellChecker locks folder

2009-05-01 Thread Chris Hostetter
: In the source of SpellChecker lines 352-353 I see that after the indexing is : done the index is reopened: : searcher.close(); : searcher = new IndexSearcher(this.spellIndex); : : Why does that second line exist at all? when you instantiate a SpellChecker object, it opens a Searcher for reuse

Re: MultiFieldQueryParser - using a different analyzer per field...

2009-05-01 Thread Erick Erickson
This looks like a job for PerFieldAnalyzerWrapper, no MultiFieldQueryparser required Best Erick On Fri, May 1, 2009 at 3:33 PM, theDude_2 wrote: > > Hello fellow Lucene developers! > > I have a bit of a question - and I can't find the answer in my lucene > book > > Im trying to crea

Re: Piece of coded needed

2009-05-01 Thread Chris Hostetter
Asking people to write some code for you isn't typically an effective strategy to get assistance. You're more likely to get assistance from the community if you provide some indication that you've at least looked at the Lucene APIs and made some attempt at investigating a solution for yoursel

Re: Question around LOM | Lucene Ontology

2009-05-01 Thread Chris Hostetter
: Hi : Am a newbie to Lucene and hence this question about how to implement Ontology based search using Lucene (LOM). : It would be useful to guide to any useful books, white papers etc. detailing out the same. : Thanks : R I have no idea what LOM is ... but google suggests this... http://porta

Re: Query scoring

2009-05-01 Thread Chris Hostetter
: Sorry, you can see the script below: uh ... ok. so now you've posted a bunch of your code, but you still haven't addresed the root of what Erick and I were both getting at... : > Erick means we need to see *all* of your code (inlcuding how you get the : > score and the Explanation you are pr

MultiFieldQueryParser - using a different analyzer per field...

2009-05-01 Thread theDude_2
Hello fellow Lucene developers! I have a bit of a question - and I can't find the answer in my lucene book Im trying to create a query that will query 2 fields using different analyzers and combine the scores together to give me my "hits". The idea is that for the one dataset I want a pure

problem with the output of using SVD with lucene

2009-05-01 Thread nitin gopi
Hi all, I had implemented something, which I am going to describe in following steps 1. I took the input as 2 text files 2. I removed stop words from them 3. I did stemming over them 4. I formed the term document matrix using lucene. In the matrix values were the number of times the term has appear

Re: Re: How to get the similarity between two string v ectors?

2009-05-01 Thread Kamal Najib
thank you Grant for the reply, i will have a look at the mentioned package and classes. kamal. Original Message: Yes and no. You can have a look at More Like This in the contrib package. Additionally, you can just get the TermVectors out of Lucene and write your own. You could use a Memory

Re: Re: [ no subject ]

2009-05-01 Thread Kamal Najib
Thanks Anshum Gupta for the reply, "As per my knowledge, you'd have to index one of the docs and then run a query (second doc) to get the similarity score." which docs do you mean? do you mean i have to create a doc for each Vector, do you mean somthing like this: Vector1 =<"term1","term2","ter