check out http://code.google.com/p/ik-analyzer/ it's quite straightforward.
At 2012-09-06 22:22:45,Cheng <zhoucheng2...@gmail.com> wrote: >I use 3.5 now, and plan to try 3.6. How can I use IKAnalyzer and make the >analyzer to use my own dictionary and work together with Lucene? > >Thanks so much for help. > >On Thu, Sep 6, 2012 at 10:19 AM, 齐保元 <qibaoy...@126.com> wrote: > >> >> >> you'd better tell me the version of lucene.the latest version >> ikanlyzer2012 support lucene3.6 >> >> >> >> >> >IKAnalyzer is not supported in Lucene, right? >> > >> >On Thu, Sep 6, 2012 at 10:14 AM, <qibaoy...@126.com> wrote: >> > >> >> >> >> 1.fatjar is a tool for archiving jars/classes together NOTan analyzer. >> >> 2.smartcn seems not able to import your own dictionay,it can only import >> >> stop word dict;You can try IKAnalyzer instead. >> >> >> >> >> >> At 2012-09-06 22:10:15,Cheng <zhoucheng2...@gmail.com> wrote: >> >> >Thanks. I will try that. >> >> > >> >> >Another question. How to use my own dictionary instead of the default >> one >> >> >either in FatJAR or smartcn.jar? >> >> > >> >> >On Thu, Sep 6, 2012 at 10:07 AM <qibaoy...@126.com> wrote: >> >> > >> >> >> >> >> >> >> >> >> import contrib/smartcn.jar is not complicated.or you can try FatJAR. >> >> >> >> >> >> >> >> >> At 2012-09-06 22:04:58,Cheng <zhoucheng2...@gmail.com> wrote: >> >> >> >Hi, >> >> >> > >> >> >> >The default Lucene core jar contains no the smartcn analyzer. How >> can I >> >> >> >include it into the core jar. >> >> >> > >> >> >> >Thanks! >> >> >> >> >> >>