IKAnalyzer
linliangyi2007.javaeye.com
http://code.google.com/p/ik-analyzer
reference:
http://www.unixmen.com/linux-tutorials/985-how-to-install-java-run-time-environment-in-ubuntu-1004-lucid-lynx
http://www.tc.umn.edu/~brams006/solr_ubuntu.html
http://kmtk.cs.ait.ac.th/knowledge-center/how-to/solr-howto-install-solr-on-ubuntu-server-8.0.4
http://happy-coding.com/install-sun-java6-jdk-on-ubuntu-10-04-lucid/
http://blog.janjonas.net/2010-06-12/ubuntu_10_04-java-setup-sun-jdk
1)install java enviroment on ubuntu 10.04
linliangyi2007.javaeye.com
http://code.google.com/p/ik-analyzer
reference:
http://www.unixmen.com/linux-tutorials/985-how-to-install-java-run-time-environment-in-ubuntu-1004-lucid-lynx
http://www.tc.umn.edu/~brams006/solr_ubuntu.html
http://kmtk.cs.ait.ac.th/knowledge-center/how-to/solr-howto-install-solr-on-ubuntu-server-8.0.4
http://happy-coding.com/install-sun-java6-jdk-on-ubuntu-10-04-lucid/
http://blog.janjonas.net/2010-06-12/ubuntu_10_04-java-setup-sun-jdk
1)install java enviroment on ubuntu 10.04
<span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><strong>sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"</strong></span></span>
<span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><strong>sudo apt-get update<br /></strong></span></span><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><strong>sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts</strong></span></span><br />
sudo apt-get install sun-java6-bin sun-java6-demo sun-java6-jdk
sun-java6-jre
sudo update-alternatives --config java
2)install tomcat6
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user
tomcat6-docs tomcat6-examples
重启tomcat
sudo /etc/init.d/tomcat6 restart
chmod -R 777 solr
更改solrconfig.xml中的datadir为如下内容
<dataDir>/var/lib/solr/data</dataDir>
good article
http://ocdevel.com/blog/installing-apachesolrmodule-ubuntu-1004
配置schema.xml
~/下载/apache-solr-1.4.1/example/exampledocs$ sh ./post.sh ./clear_index.xml
~/下载/apache-solr-1.4.1/example/exampledocs$ sh ./post.sh ./book2.xml
查询技巧
当有:时要使用\进行转义
http\://www.15wk.com/ShowPro17779.html
<?xml version="1.0" encoding="UTF-8" ?>
<add>
<doc>
<field name="id">1</field>
<field name="weight">0.230千克</field>
<field name="link">http://www.15wk.com/ShowPro17779.html</field>
<field name="description"></field>
<field name="productid">51666</field>
<field name="name">正品DOULEX呼吸鼠标灯(粉红)赠电源转换器</field>
<field name="unit">个</field>
<field name="location">中国</field>
<field name="site">万客商城</field>
<field name="price">24.00</field>
<field name="packagingCount">282</field>
<field name="inStock">true</field>
<field name="popularity">0</field>
<field name="material">282</field>
<field name="wrap">彩盒</field>
<field name="size">12.7*9.7*6.3cm</field>
<field name="createdOn">NOW</field> <!--这里的NOW会转换成ISO的时间,到北京要加8转换-->
</doc>
</add>
参考转换时间的java代码
http://www.surya.com.cn/index.php/archives/71
![](http://img.zemanta.com/pixy.gif?x-id=a91fcf05-0aef-8671-8315-d05543edd5b6)