Re: Highlight an Greek

2008-06-30 Thread jim
Hi Sorry about doubble messaging, it was from mistake I am working on an application that searches documents with lucene. The documents are taken from a database and the basic field is in HTML. The index and searching works fine with Greek characters. I am using the lucene to take the ID a

Re: Highlight an Greek

2008-06-30 Thread Eleanor Joslin
You should be using the same analyzer when you query as when you built the index. I suspect that in this case you need to make an analyzer that recognises both English and Greek. I hope this helps, Eleanor Joslin [EMAIL PROTECTED] wrote: Hello i am having the following code to high

Re: Highlight an Greek

2008-06-26 Thread Grant Ingersoll
Because there are no matches? Have you checked your index, etc? Do you get matches for that query normally in Greek against your index (nevermind highlighting)? Are your analyzers the same? Are your English Fields stored and the Greek ones not? Does field "f" contain Greek? It could b

Highlight an Greek

2008-06-26 Thread jim
Hello i am having the following code to highlight a text public String highlight(String text, String query ) throws IOException { TermQuery query = new TermQuery(new Term("f", query)); QueryScorer scorer = new QueryScorer(query); SimpleHTMLFormatter formatter = new SimpleHTMLForm