You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Bing Li <lb...@gmail.com> on 2011/01/18 18:39:13 UTC
Indexing and Searching Chinese
Hi, all,
Now I cannot search the index when querying with Chinese keywords.
Before using Solr, I ever used Lucene for some time. Since I need to crawl
some Chinese sites, I use ChineseAnalyzer in the code to run Lucene.
I know Solr is a server for Lucene. However, I have no idea know how to
configure the analyzer in Solr?
I appreciate so much for your help!
Best,
LB
Re: Indexing and Searching Chinese
Posted by Otis Gospodnetic <ot...@yahoo.com>.
Bing Li,
You can configure different analyzers in your Solr's schema.xml. Have a look at
the example Solr schema.xml to see how that's done.
http://search-lucene.com/?q=%2Bchinese+analyzer+schema&fc_project=Solr&fc_type=wiki
There is also SmartCN Analyzer in Lucene that you could configure in Solr. Have
a look: http://search-lucene.com/?q=smartcn
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters is a good page to
know. :)
Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/
----- Original Message ----
> From: Bing Li <lb...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Tue, January 18, 2011 12:39:13 PM
> Subject: Indexing and Searching Chinese
>
> Hi, all,
>
> Now I cannot search the index when querying with Chinese keywords.
>
> Before using Solr, I ever used Lucene for some time. Since I need to crawl
> some Chinese sites, I use ChineseAnalyzer in the code to run Lucene.
>
> I know Solr is a server for Lucene. However, I have no idea know how to
> configure the analyzer in Solr?
>
> I appreciate so much for your help!
>
> Best,
> LB
>