On Feb 11, 2011, at 9:19 PM, frank rittinger wrote:

> Hi list,
>  
> I just realized, that the simple search cannot find non-ASCII characters 
> (e.g. “Täst”) that were edited in a wysiwyg editor, e.g. TextImage paragraph. 
> However  searching for “Täst” finds the expected result. Is there an 
> easy way to also find characters that were transformed to html entities by 
> the fckedit?
>  
> One possible solution would be to replace all non-ASCII characters in the 
> SearchModel by their corresponding html entity. Is there a more straight 
> forward way?

I would say the simplest solution is to extend Edit control with the simple 
flag "escapeChars" which would then escape all html entities on save so the 
edit will be same as FckEdit content.
The second step would be then perform same escaping on the search query prior 
the search. 
Since all the content will be escaped, you should get all the hits no matter 
whether created with edit or fckEdit. There is still problem of searching on 
the full text of binary docs.

Other option is to perform 2 search runs (one for escaped and other for non 
escaped query) and merge the results.


HTH,
Jan

>  
> Best Regards,
>  
> Frank
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------




----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to