getting exception in lucene 4.0

2015-04-30 Thread Rajendra Rao
i am getting below exception while using apache lucene in web service with tomcat ,axis 2 .This exception is not coming in standalone application. Java.lang.IllegalArgumentException: A SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene42' does not exist. You need to add the corresp

Re: Boolean Search Query is not workng

2015-01-23 Thread Rajendra Rao
Hello Reply to the mail, sent by Nitin We tried and this is what we got : My query was dotNet^10.0 Resume:jdbc Resume:C# Resume:MVC Documents: .1. java jdbc 2.Java dotNet 3.java jdbc apache 4.java dotNet 5.java 6java jdbc apache dotNet C# MVC 7.jakarta 8",apache 9.java jdbc apac

Re: How to map lucene scores to range from 0~100?

2014-11-11 Thread Rajendra Rao
Harry , basically converting score into range 0 to 100 require normalization(dividing each score with highest record and multiply by .100) .but this score does n't represent matching %. On Tue, Nov 11, 2014 at 7:48 PM, Harry Yu <502437...@qq.com> wrote: > Hi everyone, > > > I met a new trouble.

Fwd: how to ignore full stop for specific word

2014-11-06 Thread Rajendra Rao
Hello , I have some word which contain full stop (.) itself ,example is (1) .Net , asp.net .i want lucene consider it as a single word not full stop . how to achieve it. another problem is some word contain specific format like c# .lucene not searching this type of word. if word

how to ignore full stop for specific word

2014-11-05 Thread Rajendra Rao
Hello , I have some word which contain full stop (.) itself ,example is (1) .Net , asp.net .i want lucene consider it as a single word not full stop . how to achieve it. another problem is some word contain specific format like c# .lucene not searching this type of word. if word

Re: getting exception while deploying on axis 2

2014-09-25 Thread Rajendra Rao
NF/services folders, > > > and if multiple Lucene JAR files are included, merge the entries in > > > the services files from all of them. Yu can do this with the Maven > > > Shade Plugin and its resource transformers. > > > > > > Uwe > > > > > > -

getting exception while deploying on axis 2

2014-09-24 Thread Rajendra Rao
We are using lucene 4.1 and getting below error while deploying our application it on axis2 . *java.lang.IllegalArgumentException: A SPI class of type org.apache.lu cene.codecs.Codec with name 'Lucene41' does not exist.* * You need to add the corre**sponding JAR file supp

Re: More Like This query is not working.

2014-07-21 Thread Rajendra Rao
ocs results = searcher.search(Searchedquery, 10); ScoreDoc[] hits = results.scoreDocs; for (int i = 0; i < hits.length; ++i) { int docId = hits[i].doc; // // if(hits[i].score<.4) // { // continue; // } Document d = searcher.doc(docId); System.out .println("similar/more like document to your quer

Re: More Like This query is not working.

2014-07-21 Thread Rajendra Rao
stead. > > > -- > Ian. > > > On Fri, Jul 18, 2014 at 11:50 AM, Rajendra Rao > wrote: > > 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

Re: Doubt Regarding Lucene matchscore

2014-07-21 Thread Rajendra Rao
+Priyanka Tufchi Hello Kumaran We are using version 4.1 we have passed 1900 document and set paging 1900 we are expecting score of 1900 but we are getting only 1400 records in ScoreDoc[] hits So where are remaining 500 records .? should we consider it no matched ? and 900 records have matchInd

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

How to set threshold for categorized document as Matched ,Partial Match, No Match with query.

2014-07-12 Thread Rajendra Rao
Hi We used apache lucene for ranking documents .We have documents with its score .Now our requirements is to set a threshold so that we can show that documents has matched ,no matched ,or partial match based on the threshold .How can we set this threshold because match score has decimal number

will score get changed as document continuously added.

2014-06-11 Thread Rajendra Rao
I am planning to implement lucene searching in my project. I have to save score of document corresponding to query . say i have query q and documents d1,d2,d3 .after running lucene i got q1 d30.643 d10.554 d20.462 Now 1 more document d4 comes and above proces

Is it wrong to create index writer on each query request.

2014-06-04 Thread Rajendra Rao
I have system in which documents and Query comes frequently .I am creating index writer in memory every time for each query I request . I want to know Is it good to separate Index Writing and loading and Query request ? Whether It is good to save index writer on hard disk .Whether it is time co

Which is better ,Search through query and whole text document or search through query with document field.

2014-02-13 Thread Rajendra Rao
Hello, I have query and document.Its unstructured & natural text.I used lucene for searching document on query.If I separate Document into field and then search.what will be difference? I can't check it because now i don't have field separated data .But in future we will have. Thanks.