I’ll look why it crashes. But anyway you should call Query::rewrite and pass 
the resulting query to highlighter instead of original query

(see Query.h for description of rewrite). Otherwise highlighter won’t highlight 
words related to wildcard term.

 

Borek

 

From: muhammad ismael [mailto:m.ismae...@gmail.com] 
Sent: Saturday, November 27, 2010 3:19 PM
To: CLucene-developers@lists.sourceforge.net
Subject: [CLucene-dev] crash when using highlighter with the wildcardQuery!!!

 

Hello everybody,
When i use WildcardQuery to search for a word the search is done successfully, 
but when i try to highlight using a WildcardQuery the application crashes. 
I think this because of the function Query::extractTerms.
can any body help to solve this problem?
-- 

Sincerely
--------------------
Mohammad Ismael
Software Developer
Mobile:+20114753575

 

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Reply via email to