Hi
How to perform the partial or full text search from the lucene index directory using JQL functionality.
Ex: issue in mymethod("fieldname","testing")
The above method has to return all the fields whichever contains the word "testing".
Here is my code:
Term term = new Term("fieldname", "testing");
Query query = new TermQuery(term);
The above code is returning only when the field contains "testing". It is not searching the whole sentence.
I tried below one for partinal search
Term term = new Term("fieldname", "test*");
Query query = new WildcardQuery(term);
The above one is not supporting the uppercase. If i give "TEST*" its not giving anything eventhough i have fields in index.
Moreover it searches only the starting word, not the whole sentence
Is there any wrong in that? or will the lucene search provide this functionality?
Any suggestion from the experts?