Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • raju 3 posts 23 karma points
    Aug 10, 2012 @ 09:51
    raju
    0

    Lucene search for Chinese language website

    We have website which uses Lucene examine indexing for searching the site content.

    It work perefectly fine for english content but when we try to search any chinese content, it showing no results.

    do we need to add separate analyzer for chinese language ?

     

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Aug 10, 2012 @ 10:32
    Ismail Mayat
    1

    You will need chinese language analyser. See https://svn.apache.org/repos/asf/incubator/lucene.net/trunk/src/contrib/Analyzers/Cn/ build that then index and search using that analyser you can set the analyser property in the exmiane config attribute 

    analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"

    Update the to your compiled assembly with namespace to the chinese then rebuild the index.

    Regards

    Ismail

     

  • raju 3 posts 23 karma points
    Aug 12, 2012 @ 13:21
    raju
    0

    Thanks Ismail for info.

    I think this analyzer will search only the Chinese content,  actually we have mixed content Chinese and English. do we have any other analyzer which will search both English and Chinese content simultaneously.

     

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Aug 14, 2012 @ 18:54
    Ismail Mayat
    0

    raju,

    No idea. As far as I am aware you have single language analyzers. Is the content in separate websites in same instance if so you could create separate indexes? One for english and one for chinese.

    Regards

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft