Re: Doubt Regarding Lucene matchscore

2014-07-18 Thread Kumaran R
Provide some more information like lucene version, sample code, parameters involved in indexing and searching. -- Kumaran R > On 18-Jul-2014, at 6:52 pm, Priyanka Tufchi > wrote: > > Hi All > > I am matching and ranking two set of Docs using apache lucene and I passes > page hits 1000. But in t

Re: Lucene Query Wrong Result for phrase.

2014-07-18 Thread Jack Krupansky
The standard tokenizer will strip off those escaped quotes at query time. Ditto for the hyphen at index time. Try constructing your own analyzer using the white space tokenizer instead of the standard tokenizer. -- Jack Krupansky -Original Message- From: itisismail Sent: Friday, Ju

Re: Lucene Query Wrong Result for phrase.

2014-07-18 Thread itisismail
Thanks IanI am using same analyzer for both indexing & searching. Problem is either I search hello world or hello-world or hello:world or hello,world in all cases I am getting same result. All of the queries are wrapped in double quotes. Actuall message indexed is hello - world.Also I am using phr

Re: Migration Lucene 3=>4: IndexSearcher.setDefaultFieldSortScoring(..)

2014-07-18 Thread Steve Rowe
Hi Christian, I found an entry about this in the 4.0-ALPHA “Changes in backwards compatibility policy” section of Lucene’s CHANGES.txt (html version): : LUCENE-3514: IndexSea

Migration Lucene 3=>4: IndexSearcher.setDefaultFieldSortScoring(..)

2014-07-18 Thread Christian Reuschling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 We currently migrate one project to Lucene 4 and noticed that the method IndexSearcher.setDefaultFieldSortScoring(..) disappeared in Lucene 4.0. We can't find something about this in the migration guide. Further, it was never deprecated in Lucene 3,

Re: More Like This query is not working.

2014-07-18 Thread Ian Lea
You need to supply more info. Tell us what version of lucene you are using and provide a very small completely self-contained example or test case showing exactly what you expect to happen and what is happening instead. -- Ian. On Fri, Jul 18, 2014 at 11:50 AM, Rajendra Rao wrote: > Hello > >

Re: Lucene Query Wrong Result for phrase.

2014-07-18 Thread Ian Lea
Probably because something in the analysis chain is removing the hyphen. Check out the javadocs. Generally you should also make sure you use the same analyzer at index and search time. -- Ian. On Fri, Jul 18, 2014 at 6:52 AM, itisismail wrote: > Hi I have created index with 1 field with simp

Doubt Regarding Lucene matchscore

2014-07-18 Thread Priyanka Tufchi
Hi All I am matching and ranking two set of Docs using apache lucene and I passes page hits 1000. But in the result it shows 200 only why? It means that rest 800 are not matched and if so then what we should consider if we are getting 0.00 score for any match . Waiting for reply Thanks Priyanka

More Like This query is not working.

2014-07-18 Thread Rajendra Rao
Hello I am using more like this query .But size of Score Docs i am getting is 0 I found that it In Query Searchedquery = mlt.like(reader1, "criteria"); query object contain following value boost 1.0 all clauses element data is null I used following code MoreLikeThis mlt = new MoreLikeThis(read