hi all,
I am trying a program that could highlight a searched term and writes
the result into a demo.html file. As of now this demo.html can show
only few pages of the book . Is there any way i can use it show the
whole book. (Can increasing the fragment size upto filesize help?)
I have a
ent ,the real .xml or .html page where the
>> term was found and show the term being highlighted (in say yellow
>> color).
>
> First make yourself clear about what you want at the end of the day, then
> try to get that done.
>
> --KK
>
> On Thu, May 28, 2009 at
Is this possible through lucene or has anybody tried such thing?
On 28/05/2009, Ritu choudhary wrote:
> well friend let me explain the whole thing to you then:
>
> i created lucene index out of some .xml and .html files and i also
> checked this index through luke and its pretty
well friend let me explain the whole thing to you then:
i created lucene index out of some .xml and .html files and i also
checked this index through luke and its pretty alright till here . I
searched the terms and can find them too but how do i use this result
. I want to open the document ,the
The output i want is to show the text i searched let's say "search" in the
document where it occured. Like this:
the text i want to search is this and it should be highlighted as this .
Search currently is giving just the word "search". The result i want is to
highlight the searched word in the d
, and you will see the matches in yellow
>> [you chose yellow as color for highlighting].
>>
>> --KK
>>
>>
>> On Thu, May 28, 2009 at 11:42 AM, Ritu choudhary
>> wrote:
>>
>>> I have added the lines you suggested and
ormatter("",
> "");
> Highlighter highlighter = new Highlighter(formatter, scorer);
>
> and this is your code,
>
> Highlighter highlighter = new Highlighter(new QueryScorer(query));
>
> You missed the formatter altogether but you added thesty
Am i coding it wrongly ...please reply.
Thank you so much for your patience and support but i am still not
getting the correct result. Here is my code can you please tell me
what wrong have i done in it? (I don't want to use
org.apache.search.hit so i have used terms in place of that)
package highlighted;
import java.io.FileWriter;
i
; "}\n" +
> "");
> writer.write("");
> writer.write(result);
> writer.write("");
> writer.close();
> // remove upto this point
> }
> }
> --
> Make sure you have all the lucene jars in
hi there,
I am using lucene highlighter to highlight the searched result
but it shows only the query string in bold highlights.
IS THERE ANY WAY I CAN USE IT TO SHOW THE HIGHLIGHTED TEXT IN THE
DOCUMENT WHERE IT IS FOUND?
I need to show the searched terms in highlights in the
document where it
11 matches
Mail list logo