Re: More Like This query is not working.

2014-07-21 Thread Rajendra Rao
Hello lan, code is below ,please let us know where we are mistaken. public void FindSimilarDocExe() throws IOException, ParseException, ClassNotFoundException { // ResultSet rs=null; // Specify the analyzer for tokenizing text. // The same analyzer should be use

Re: More Like This query is not working.

2014-07-21 Thread Ian Lea
That's not completely self-contained which means that we can't compile and test it ourselves. This looks very dodgy: doc.add(new TextField("searchedText", ... mlt.setFieldNames("SearchedText"); -- Ian. On Mon, Jul 21, 2014 at 12:41 PM, Rajendra Rao wrote: > Hello Ian, > > I am using version

Re: More Like This query is not working.

2014-07-21 Thread Rajendra Rao
Hello Ian, I am using version 4.1 I am expecting id of SearchedText which is similar of QueryStr but i am getting 0 sizeScoreDoc[] hits Below is code I am using. ___ My Parameter is ArrayList whic contain DocID and Criteria Text (collection of Documents to be

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 > >