<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>丕子 &#187; Lucene</title>
	<atom:link href="http://www.zhizhihu.com/html/ytag/lucene/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zhizhihu.com</link>
	<description>花开堪折直须折，莫待无花空折枝。</description>
	<lastBuildDate>Wed, 08 Feb 2012 00:43:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Lucene2.9.1使用小结</title>
		<link>http://www.zhizhihu.com/html/y2009/850.html</link>
		<comments>http://www.zhizhihu.com/html/y2009/850.html#comments</comments>
		<pubDate>Thu, 26 Nov 2009 23:45:39 +0000</pubDate>
		<dc:creator>丕子</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Lucene]]></category>
		<category><![CDATA[信息检索]]></category>
		<category><![CDATA[爬虫]]></category>
		<category><![CDATA[索引]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[开源全文搜索工具包Lucene2.9.1的使用。 1. 搭建Lucene的开发环境：在classpath中添加lucene-core-2.9.1.jar包    2. 全文搜索的两个工作: 建立索引文件,搜索索引.    3. Lucene的索引文件逻辑结构   1) 索引(Index)由若干块(片段)(Segment)组成   ★2) 块由若干文档(Document)组成: 一个文件映射成一个文档。数据库表中的一条记录映射成一个文档。   ★3) 文档由若干域(Field)组成：文件的属性(文件路径，文件的内容)映射成一个域。记录的某个字段映射成一个域。   ☆4) 域由若干词(关键字)(Term)组成：文件的属性的内容中某个字符串映射成一个词。   4. Lucene包结构   1) analysis模块：负责词法分析及语言处理而形成Term(词)。提供了一些内置的分析器：最常用的是StandardAnalyzer   2) index模块：负责索引的读写。 对索引文件的segment进行写、合并、优化的IndexWriter类。对索引进行读取和删除操作的IndexReader类。   3) store模块：负责索引的存储。提供索引的各种存储类：FSDirectory，RAMDirectory等。   4) document模块：索引文件内部的基础存储结构封装。如：Document类和Field类等。   5) search模块：负责对索引的搜索。提供了索引搜索器IndexSearcher类和各种Query类，如TermQuery、BooleanQuery等。   6) queryParser模块：负责查询语句的语法分析。提供了解析查询语句的QueryParser类   7) util模块：包含一些公共工具类。 5. 创建索引   1) IndexWriter：索引写出器      a) [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Lire – Lucene Image REtrieval" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F604.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F850.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Lire – Lucene Image REtrieval</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="IM2GPS: estimating geographic information from a single image" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F570.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F850.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/05/28010451.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">IM2GPS: estimating geographic information from a single image</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="数据集-用于数据挖掘、信息检索、知识发现等" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F490.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F850.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">数据集-用于数据挖掘、信息检索、知识发现等</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="2010信息检索数据挖掘机器学习相关国际会议" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F206.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F850.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/14/22748387.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">2010信息检索数据挖掘机器学习相关国际会议</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="通过WSDM2011论文录用情况分析目前信息检索趋势" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2010%2F2492.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F850.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/14/22742465.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">通过WSDM2011论文录用情况分析目前信息检索趋势</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>开源全文搜索工具包Lucene2.9.1的使用。</p>
<p>1. 搭建Lucene的开发环境：在classpath中添加lucene-core-2.9.1.jar包<br />
  <br />
2. 全文搜索的两个工作: 建立索引文件,搜索索引.<br />
  <br />
3. Lucene的索引文件逻辑结构<br />
  1) 索引(Index)由若干块(片段)(Segment)组成<span id="more-850"></span><br />
  ★2) 块由若干文档(Document)组成: 一个文件映射成一个文档。数据库表中的一条记录映射成一个文档。<br />
  ★3) 文档由若干域(Field)组成：文件的属性(文件路径，文件的内容)映射成一个域。记录的某个字段映射成一个域。<br />
  ☆4) 域由若干词(关键字)(Term)组成：文件的属性的内容中某个字符串映射成一个词。<br />
 <br />
4. Lucene包结构<br />
  1) analysis模块：负责词法分析及语言处理而形成Term(词)。提供了一些内置的分析器：最常用的是StandardAnalyzer<br />
  2) index模块：负责索引的读写。 对索引文件的segment进行写、合并、优化的IndexWriter类。对索引进行读取和删除操作的IndexReader类。<br />
  3) store模块：负责索引的存储。提供索引的各种存储类：FSDirectory，RAMDirectory等。<br />
  4) document模块：索引文件内部的基础存储结构封装。如：Document类和Field类等。<br />
  5) search模块：负责对索引的搜索。提供了索引搜索器IndexSearcher类和各种Query类，如TermQuery、BooleanQuery等。<br />
  6) queryParser模块：负责查询语句的语法分析。提供了解析查询语句的QueryParser类<br />
  7) util模块：包含一些公共工具类。</p>
<blockquote><p>5. 创建索引<br />
  1) IndexWriter：索引写出器<br />
     a) 构造方法：<br />
        IndexWriter(Directory d, Analyzer a, IndexWriter.MaxFieldLength mfl)<br />
           如果索引不存在，就会被创建。如果索引存在,就追加.<br />
        IndexWriter(Directory d, Analyzer a, boolean create, IndexWriter.MaxFieldLength mfl)<br />
           create为true时，原索引文件不存在就创建，存在就覆盖。<br />
           create为false时，原索引文件不存在就报错，存在就追加。<br />
     b) 常用方法:<br />
        void addDocument(Document doc);  //把指定文档添加到索引写出器中<br />
        void iw.close();  //关闭索引写出器,此时才把索引写到目标存储地<br />
 <br />
  2) Directory: 索引存放地。<br />
     a) 文件系统:FSDirectory:  FSDirectory.open(File file);<br />
     b) 内存RAMDirectory:  new RAMDirectory();<br />
 <br />
  3) Analyzer: 分词器。<br />
     a) StandardAnalyzer:  标准分词器。对英文采用空白, 标点符号进行分词。对中文采用单字分词。<br />
     b) SmartChineseAnalyzer:  智能中文分词器。(LUCENE_HOME/contrib/analyzers/smartcn/lucene-smartcn-2.9.1.jar)<br />
     C) 第三方的中文分词器：如PaodingAnalyzer、IKAnalyzer<br />
 <br />
  4) IndexWriter.MaxFieldLength: 指定域值的最大长度。<br />
     a) UNLIMITED 无限制的。<br />
     b) LIMITED 有限制的。值为10000<br />
 <br />
  5) Document: 索引的组成单元. 一组Field的集合.<br />
     a) 构造方法: Document();<br />
     b) 常用方法: void add(Field f);  //添加指定域到这个文档中<br />
    <br />
  6) Field: 域,代表文档的某个索引域.<br />
     a) 构造方法: Field(String name, String value, Field.Store.YES, Field.Index.ANALYZED)<br />
        name: 域的名称, 只能是字符串.<br />
        value: 域的值, 只能是字符串.<br />
        Field.Store: 指定Field的值是否存储或怎样存储. NO(不存储), YES(存储),COMPRESS(压缩后存储)<br />
        Field.Index: 指定Field是否被索引或怎么被索引. NO(不索引), ANALYZED(分词后索引), NOT_ANALYZED(不分词直接索引)<br />
  7) 示例代码:<br />
//src要创建索引的文件，destDir索引存放的目录  <br />
public static void createIndex(File src, File destDir){  <br />
 Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_CURRENT); //创建一个语法分析器  <br />
 IndexWriter iwriter = null;  <br />
 Directory directory = null;  <br />
 try {  <br />
  directory = FSDirectory.open(destDir); //把索引文件存储到磁盘目录  <br />
  //创建一个IndexWriter(存放索引文件的目录,分析器,Field的最大长度)  <br />
  iwriter = new IndexWriter(directory, analyzer,true, IndexWriter.MaxFieldLength.UNLIMITED);  <br />
  //iwriter.setUseCompoundFile(true);//使用复合文件  <br />
       <br />
  Document doc = new Document(); //创建一个Document对象  <br />
  //把文件路径作为"path"域：不分词,索引,保存  <br />
  doc.add(new Field("path", src.getCanonicalPath(), Field.Store.YES, Field.Index.NOT_ANALYZED));  <br />
    <br />
  StringBuilder sb = new StringBuilder();  <br />
  BufferedReader br = new BufferedReader(new FileReader(src));  <br />
  for(String str = null; (str = br.readLine())!=null;){  <br />
   sb.append(str).append(System.getProperty("line.separator"));   <br />
  }  <br />
  //文件内容作为"content"域：分词,索引,保存  <br />
  doc.add(new Field("contents", sb.toString(), Field.Store.YES, Field.Index.ANALYZED));   <br />
    <br />
  iwriter.addDocument(doc); //把Document存放到IndexWriter中  <br />
  iwriter.optimize();  //对索引进行优化    <br />
 } catch (IOException e) {  <br />
  e.printStackTrace();  <br />
 } finally {   <br />
  if (iwriter != null) {  <br />
   try {  <br />
    iwriter.close(); //关闭IndexWriter时,才把内存中的数据写到文件   <br />
   } catch (IOException e) {  <br />
    e.printStackTrace();  <br />
   }   <br />
  }  <br />
  if (directory != null) {  <br />
   try {  <br />
    directory.close(); //关闭索引存放目录  <br />
   } catch (IOException e) {  <br />
    e.printStackTrace();  <br />
   }  <br />
  }  <br />
 }  <br />
}    <br />
//src要创建索引的文件，destDir索引存放的目录<br />
public static void createIndex(File src, File destDir){<br />
 Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_CURRENT); //创建一个语法分析器<br />
 IndexWriter iwriter = null;<br />
 Directory directory = null;<br />
 try {<br />
  directory = FSDirectory.open(destDir); //把索引文件存储到磁盘目录<br />
  //创建一个IndexWriter(存放索引文件的目录,分析器,Field的最大长度)<br />
  iwriter = new IndexWriter(directory, analyzer,true, IndexWriter.MaxFieldLength.UNLIMITED);<br />
  //iwriter.setUseCompoundFile(true);//使用复合文件<br />
    <br />
  Document doc = new Document(); //创建一个Document对象<br />
  //把文件路径作为"path"域：不分词,索引,保存<br />
  doc.add(new Field("path", src.getCanonicalPath(), Field.Store.YES, Field.Index.NOT_ANALYZED));<br />
 <br />
  StringBuilder sb = new StringBuilder();<br />
  BufferedReader br = new BufferedReader(new FileReader(src));<br />
  for(String str = null; (str = br.readLine())!=null;){<br />
   sb.append(str).append(System.getProperty("line.separator"));<br />
  }<br />
  //文件内容作为"content"域：分词,索引,保存<br />
  doc.add(new Field("contents", sb.toString(), Field.Store.YES, Field.Index.ANALYZED));<br />
 <br />
  iwriter.addDocument(doc); //把Document存放到IndexWriter中<br />
  iwriter.optimize();  //对索引进行优化 <br />
 } catch (IOException e) {<br />
  e.printStackTrace();<br />
 } finally {<br />
  if (iwriter != null) {<br />
   try {<br />
    iwriter.close(); //关闭IndexWriter时,才把内存中的数据写到文件<br />
   } catch (IOException e) {<br />
    e.printStackTrace();<br />
   }<br />
  }<br />
  if (directory != null) {<br />
   try {<br />
    directory.close(); //关闭索引存放目录<br />
   } catch (IOException e) {<br />
    e.printStackTrace();<br />
   }<br />
  }<br />
 }<br />
}  <br />
 </p></blockquote>
<blockquote><p>6. 查询索引<br />
  1) IndexSearcher: 索引查询器<br />
      a) 构造器: IndexSearcher(Directory path, boolean readOnly)<br />
      b) 常用方法:<br />
         TopDocs search(Query query, Filter filter, int n);  //执行查询。n指的是最多返回的Document的数量。<br />
         Document doc(int 文件内部编号);  //根据文档的内部编号获取到该Document<br />
         void close();  //关闭查询器<br />
  2) Query: 查询对象。把用户输入的查询字符串封装成Lucene能够识别的Query对象。<br />
  3) Filter: 用来过虑搜索结果的对象。<br />
  4) TopDocs: 代表查询结果集信息对象。它有两个属性：<br />
      a) totalHits: 查询命中数。<br />
      b) scoreDocs: 查询结果信息。它包含符合条件的Document的内部编号(doc)及评分(score)。<br />
   5) 示例代码:<br />
//keyword要搜索的关键字。indexDir索引存放的目录  <br />
public static void searcher(String keyword, File indexDir){  <br />
 IndexSearcher isearcher = null;  <br />
 Directory directory = null;  <br />
 try{  <br />
  Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_CURRENT);  <br />
  directory = FSDirectory.open(indexDir);  <br />
    <br />
  //创建解析器  <br />
  QueryParser parser = new QueryParser(Version.LUCENE_CURRENT, "contents", analyzer);  <br />
  Query query = parser.parse(keyword);//获取查询对象  <br />
       <br />
//  Query query1 = new TermQuery(new Term("contents", keyword));  <br />
//  Query query2 = new TermQuery(new Term("contents", keyword2));  <br />
//  BooleanQuery query = new BooleanQuery();  <br />
//  query.add(query1, Occur.SHOULD);  <br />
//  query.add(query2, Occur.SHOULD);  <br />
    <br />
//  QueryParser parser = new MultiFieldQueryParser(Version.LUCENE_CURRENT, new String[]{"path", "contents"}, analyzer);  <br />
//  Query query = parser.parse(keyword);  <br />
       <br />
  isearcher = new IndexSearcher(directory, true);  //创建索引搜索器  <br />
  TopDocs ts = isearcher.search(query, null, 100);  //执行搜索，获取查询结果集对象  <br />
       <br />
  int totalHits = ts.totalHits;  //获取命中数  <br />
  System.out.println("命中数：" + totalHits);  <br />
       <br />
  ScoreDoc[] hits = ts.scoreDocs;  //获取命中的文档信息对象  <br />
  for (int i = 0; i &lt; hits.length; i++) {  <br />
       Document hitDoc = isearcher.doc(hits[i].doc); //根据命中的文档的内部编号获取该文档   <br />
       System.out.println(hitDoc.getField("contents").stringValue()); //输出该文档指定域的值  <br />
  }  <br />
 } catch (IOException e) {  <br />
  e.printStackTrace();    <br />
 } catch (ParseException e) {  <br />
  e.printStackTrace();  <br />
 } finally {     <br />
  if (isearcher != null) {     <br />
   try {     <br />
    isearcher.close(); //关闭搜索器    <br />
   } catch (IOException e) {  <br />
    e.printStackTrace();  <br />
   }  <br />
  }  <br />
  if (directory != null) {     <br />
   try {     <br />
    directory.close(); //关闭索引存放目录   <br />
   } catch (IOException e) {  <br />
    e.printStackTrace();  <br />
   }  <br />
  }  <br />
 }  <br />
} <br />
//keyword要搜索的关键字。indexDir索引存放的目录<br />
public static void searcher(String keyword, File indexDir){<br />
 IndexSearcher isearcher = null;<br />
 Directory directory = null;<br />
 try{<br />
  Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_CURRENT);<br />
  directory = FSDirectory.open(indexDir);<br />
 <br />
  //创建解析器<br />
  QueryParser parser = new QueryParser(Version.LUCENE_CURRENT, "contents", analyzer);<br />
  Query query = parser.parse(keyword);//获取查询对象<br />
    <br />
//  Query query1 = new TermQuery(new Term("contents", keyword));<br />
//  Query query2 = new TermQuery(new Term("contents", keyword2));<br />
//  BooleanQuery query = new BooleanQuery();<br />
//  query.add(query1, Occur.SHOULD);<br />
//  query.add(query2, Occur.SHOULD);<br />
 <br />
//  QueryParser parser = new MultiFieldQueryParser(Version.LUCENE_CURRENT, new String[]{"path", "contents"}, analyzer);<br />
//  Query query = parser.parse(keyword);<br />
    <br />
  isearcher = new IndexSearcher(directory, true);  //创建索引搜索器<br />
  TopDocs ts = isearcher.search(query, null, 100);  //执行搜索，获取查询结果集对象<br />
    <br />
  int totalHits = ts.totalHits;  //获取命中数<br />
  System.out.println("命中数：" + totalHits);<br />
    <br />
  ScoreDoc[] hits = ts.scoreDocs;  //获取命中的文档信息对象<br />
  for (int i = 0; i &lt; hits.length; i++) {<br />
       Document hitDoc = isearcher.doc(hits[i].doc); //根据命中的文档的内部编号获取该文档<br />
       System.out.println(hitDoc.getField("contents").stringValue()); //输出该文档指定域的值<br />
  }<br />
 } catch (IOException e) {<br />
  e.printStackTrace(); <br />
 } catch (ParseException e) {<br />
  e.printStackTrace();<br />
 } finally {  <br />
  if (isearcher != null) {  <br />
   try {  <br />
    isearcher.close(); //关闭搜索器 <br />
   } catch (IOException e) {<br />
    e.printStackTrace();<br />
   }<br />
  }<br />
  if (directory != null) {  <br />
   try {  <br />
    directory.close(); //关闭索引存放目录<br />
   } catch (IOException e) {<br />
    e.printStackTrace();<br />
   }<br />
  }<br />
 }<br />
}<br />
 </p></blockquote>
<p>7. 删除索引<br />
      IndexWriter提供deleteDocuments(Term term);  //会删除索引文件里含有指定Term的所有Document。<br />
      IndexReader也提供了deleteDocuments(Term term);</p>
<p>8. 更新索引<br />
      IndexWriter提供updateDocument(Term term, Document doc); //实际上是先删除再创建索引。</p>
<p>9. 常用查询器<br />
  1) TermQuery : 按Term（关键字）查询。构造方法：TermQuery(Term t)</p>
<blockquote><p>Query query = new TermQuery(new Term("contents", keyword));  <br />
isearcher = new IndexSearcher(FSDirectory.open(indexDir), true);  <br />
TopDocs ts = isearcher.search(query, null, 100);  <br />
      Query query = new TermQuery(new Term("contents", keyword));<br />
      isearcher = new IndexSearcher(FSDirectory.open(indexDir), true);<br />
      TopDocs ts = isearcher.search(query, null, 100); </p></blockquote>
<p>  2) BooleanQuery: 布尔查询。组合多个查询器。</p>
<blockquote><p>Query query1 = new TermQuery(new Term("contents", keyword));  <br />
Query query2 = new TermQuery(new Term("contents", keyword2));  <br />
BooleanQuery query = new BooleanQuery();  <br />
query.add(query1, Occur.SHOULD);  <br />
query.add(query2, Occur.SHOULD);  <br />
 <br />
isearcher = new IndexSearcher(directory, true);   <br />
 <br />
TopDocs ts = isearcher.search(query, null, 100);  <br />
  Query query1 = new TermQuery(new Term("contents", keyword));<br />
  Query query2 = new TermQuery(new Term("contents", keyword2));<br />
  BooleanQuery query = new BooleanQuery();<br />
  query.add(query1, Occur.SHOULD);<br />
  query.add(query2, Occur.SHOULD);</p>
<p>  isearcher = new IndexSearcher(directory, true);</p>
<p>  TopDocs ts = isearcher.search(query, null, 100);<br />
 </p></blockquote>
<p>  3) MultiFieldQueryParser: 多Field中查询。</p>
<blockquote><p>QueryParser parser = new MultiFieldQueryParser(Version.LUCENE_CURRENT, new String[]{"path", "contents"}, analyzer);  <br />
Query query = parser.parse(keyword);  <br />
isearcher = new IndexSearcher(FSDirectory.open(indexDir), true);  <br />
TopDocs ts = isearcher.search(query, null, 100); <br />
      QueryParser parser = new MultiFieldQueryParser(Version.LUCENE_CURRENT, new String[]{"path", "contents"}, analyzer);<br />
      Query query = parser.parse(keyword);<br />
      isearcher = new IndexSearcher(FSDirectory.open(indexDir), true);<br />
      TopDocs ts = isearcher.search(query, null, 100);</p></blockquote>
<p>10. 高亮器Highlighter：在网页中对搜索结果予以高亮显示。<br />
   1) 在classpath添加contrib/highlighter/lucene-highlighter-2.9.1.jar<br />
   2) 示例伪代码</p>
<blockquote><p>SimpleHTMLFormatter shf = new SimpleHTMLFormatter("&lt;span style="color:red" mce_style="color:red"&gt;", "&lt;/span&gt;"); //默认是&lt;b&gt;..&lt;/b&gt;   <br />
// 构造高亮器:指定高亮的格式,指定查询计分器     <br />
Highlighter highlighter = new Highlighter(shf, new QueryScorer(query));     <br />
//设置块划分器  <br />
highlighter.setTextFragmenter(new SimpleFragmenter(Integer.MAX_VALUE));    <br />
String content = highlighter.getBestFragment(Analyzer, "fieldName", "fieldValue"); <br />
       SimpleHTMLFormatter shf = new SimpleHTMLFormatter("&lt;span style="color:red" mce_style="color:red"&gt;", "&lt;/span&gt;"); //默认是&lt;b&gt;..&lt;/b&gt;<br />
       // 构造高亮器:指定高亮的格式,指定查询计分器  <br />
       Highlighter highlighter = new Highlighter(shf, new QueryScorer(query));  <br />
       //设置块划分器<br />
       highlighter.setTextFragmenter(new SimpleFragmenter(Integer.MAX_VALUE)); <br />
       String content = highlighter.getBestFragment(Analyzer, "fieldName", "fieldValue");</p></blockquote>
<p>11. 优化<br />
  1) 使用IndexWriter须注意<br />
      修改索引后，需flush()或close()方能生效<br />
      非线程安全，任一时刻仅能有一个线程对其操作.<br />
  2) 使用IndexSearcher须注意<br />
      一旦打开，不会搜索到以后添加的索引<br />
      线程安全，多个线程仅需一个实例<br />
  3) 最佳实践<br />
      多个线程共享一个IndexSearcher, 只有当索引修改后才重新打开IndexSearcher<br />
      多个线程共享一个IndexWriter并严格同步<br />
      异步修改索引提高性能(JMS)<br />
      为每个Document创建单独的索引目录<br />
   <br />
12. 在emall项目中整合Lucene对产品的ID,名称和描述进行全文搜索。          </p>
<p>13. 使用Compass简化Lucene操作。(未完待续)</p>
<p> </p>
<p>本文来自CSDN博客，转载请标明出处：<a href="http://blog.csdn.net/qjyong/archive/2009/11/24/4866205.aspx">http://blog.csdn.net/qjyong/archive/2009/11/24/4866205.aspx</a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Lire – Lucene Image REtrieval" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F604.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F850.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Lire – Lucene Image REtrieval</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="IM2GPS: estimating geographic information from a single image" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F570.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F850.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/05/28010451.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">IM2GPS: estimating geographic information from a single image</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="数据集-用于数据挖掘、信息检索、知识发现等" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F490.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F850.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">数据集-用于数据挖掘、信息检索、知识发现等</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="2010信息检索数据挖掘机器学习相关国际会议" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F206.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F850.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/14/22748387.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">2010信息检索数据挖掘机器学习相关国际会议</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="通过WSDM2011论文录用情况分析目前信息检索趋势" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2010%2F2492.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F850.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/14/22742465.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">通过WSDM2011论文录用情况分析目前信息检索趋势</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table><h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.zhizhihu.com/html/y2011/3394.html" title="关于MINDS研讨会的讨论及报告下载">关于MINDS研讨会的讨论及报告下载</a> (3)</li><li><a href="http://www.zhizhihu.com/html/y2011/3058.html" title="抓取网页碰到500错误时：User Agent">抓取网页碰到500错误时：User Agent</a> (5)</li><li><a href="http://www.zhizhihu.com/html/y2011/2947.html" title="搜索与NLP">搜索与NLP</a> (4)</li><li><a href="http://www.zhizhihu.com/html/y2011/2789.html" title="程序中的一个细节：只要一个返回语句">程序中的一个细节：只要一个返回语句</a> (7)</li><li><a href="http://www.zhizhihu.com/html/y2011/2757.html" title="Matrix67：漫话中文分词算法">Matrix67：漫话中文分词算法</a> (6)</li><li><a href="http://www.zhizhihu.com/html/y2011/2689.html" title="晕，又出来个“盘古搜索”">晕，又出来个“盘古搜索”</a> (11)</li><li><a href="http://www.zhizhihu.com/html/y2010/2492.html" title="通过WSDM2011论文录用情况分析目前信息检索趋势">通过WSDM2011论文录用情况分析目前信息检索趋势</a> (9)</li><li><a href="http://www.zhizhihu.com/html/y2010/2476.html" title="情境搜索与个性化推荐：旨在“索”，“搜”辅之">情境搜索与个性化推荐：旨在“索”，“搜”辅之</a> (11)</li><li><a href="http://www.zhizhihu.com/html/y2010/2450.html" title="多分类问题中查全率和查准率的理解(Precision-Recall)">多分类问题中查全率和查准率的理解(Precision-Recall)</a> (3)</li><li><a href="http://www.zhizhihu.com/html/y2010/2274.html" title="网摘：对OO的思考">网摘：对OO的思考</a> (12)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.zhizhihu.com/html/y2009/850.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Lire - Lucene Image REtrieval</title>
		<link>http://www.zhizhihu.com/html/y2009/604.html</link>
		<comments>http://www.zhizhihu.com/html/y2009/604.html#comments</comments>
		<pubDate>Tue, 27 Oct 2009 09:04:55 +0000</pubDate>
		<dc:creator>丕子</dc:creator>
				<category><![CDATA[科研]]></category>
		<category><![CDATA[CBIR]]></category>
		<category><![CDATA[Image Retrieval]]></category>
		<category><![CDATA[Lucene]]></category>
		<category><![CDATA[图像检索]]></category>
		<category><![CDATA[多媒体检索]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Download now Lire - Lucene Image REtrieval 0.5.4 descriptionLire, the Lucene Image REtrieval library is a simple way to create a Lucene index of image features for content based image retrieval (CBIR). The used features are taken from the MPEG-7 Standard: ScalableColor, ColorLayout and EdgeHistogram. Furthermore methods for searching the index are provided. The LIRE library [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="国内外图像搜索引擎一览" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F160.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F604.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/19/23488891.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">国内外图像搜索引擎一览</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="图像查询的特点(Characteristics of image queries)" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F161.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F604.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/14/22749421.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">图像查询的特点(Characteristics of image queries)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="最近图像检索应用的新闻" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2011%2F2605.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F604.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/14/22735559.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">最近图像检索应用的新闻</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="基于内容图像检索技术" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F94.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F604.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/14/22742310.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">基于内容图像检索技术</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="搜狗竟然也有了基于内容图像检索应用" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2011%2F3291.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F604.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/16/23125550.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">搜狗竟然也有了基于内容图像检索应用</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><a href="http://sourceforge.net/projects/caliph-emir/files/" target="_blank">Download now</a></p>
<p>Lire - Lucene Image REtrieval 0.5.4 descriptionLire, the Lucene Image REtrieval library is a simple way to create a Lucene index of image features for content based image retrieval (CBIR).<br />
The used features are taken from the MPEG-7 Standard: ScalableColor, ColorLayout and EdgeHistogram. Furthermore methods for searching the<span id="more-604"></span> index are provided.<br />
The LIRE library is part of the Caliph &amp; Emir project and aims to provide the CBIR features of Caliph &amp; Emir to other Java projects in an easy and light weight way.<br />
Creating an Index<br />
Use DocumentBuilderFactory to create a DocumentBuilder, which will create Lucene Documents from images. Add this documents to an index like this:<br />
System.out.println("&gt;&gt; Indexing " + images.size() + " files.");<br />
DocumentBuilder builder = DocumentBuilderFactory.getExtensiveDocumentBuilder();<br />
IndexWriter iw = new IndexWriter(indexPath, new SimpleAnalyzer(), true);<br />
int count = 0;<br />
long time = System.currentTimeMillis();<br />
for (String identifier : images) {<br />
Document doc = builder.createDocument(new FileInputStream(identifier), identifier);<br />
iw.addDocument(doc);<br />
count ++;<br />
if (count % 25 == 0) System.out.println(count + " files indexed.");<br />
}<br />
long timeTaken = (System.currentTimeMillis() - time);<br />
float sec = ((float) timeTaken) / 1000f;<br />
System.out.println(sec + " seconds taken, " + (timeTaken / count) + " ms per image.");<br />
iw.optimize();<br />
iw.close();<br />
Searching in an Index<br />
Use the ImageSearcherFactory for creating an ImageSearcher, which will retrieve the images for you from the index.<br />
IndexReader reader = IndexReader.open(indexPath);<br />
ImageSearcher searcher = ImageSearcherFactory.createDefaultSearcher();<br />
FileInputStream imageStream = new FileInputStream("image.jpg");<br />
BufferedImage bimg = ImageIO.read(imageStream);<br />
// searching for an image:<br />
ImageSearchHits hits = null;<br />
hits = searcher.search(bimg, reader);<br />
for (int i = 0; i &lt; 5; i++) {<br />
System.out.println(hits.score(i) + ": " + hits.doc(i).getField(DocumentBuilder.FIELD_NAME_IDENTIFIER).stringValue());<br />
}<br />
// searching for a document:<br />
Document document = hits.doc(0);<br />
hits = searcher.search(document, reader);<br />
for (int i = 0; i &lt; 5; i++) {<br />
System.out.println(hits.score(i) + ": " + hits.doc(i).getField(DocumentBuilder.FIELD_NAME_IDENTIFIER).stringValue());<br />
}<br />
Enhancements:<br />
- An issue where the scalable color descriptor (color histogram) was not compliant to the MPEG-7 standard was fixed.<br />
- The color only search was changed to use the color layout descriptor and a bug in the edge histogram descriptor was hunted down.<br />
- The LireDemo GUI application has also been updated: A new function for creating image mosaics has been introduced and the indexing of digital photos is now faster than ever as only the EXIF thumbnails - if available - are used instead of the whole image.<br />
<a href="http://sourceforge.net/projects/caliph-emir/files/" target="_blank">Download now</a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="国内外图像搜索引擎一览" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F160.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F604.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/19/23488891.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">国内外图像搜索引擎一览</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="图像查询的特点(Characteristics of image queries)" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F161.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F604.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/14/22749421.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">图像查询的特点(Characteristics of image queries)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="最近图像检索应用的新闻" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2011%2F2605.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F604.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/14/22735559.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">最近图像检索应用的新闻</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="基于内容图像检索技术" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F94.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F604.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/14/22742310.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">基于内容图像检索技术</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="搜狗竟然也有了基于内容图像检索应用" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2011%2F3291.html&from=http%3A%2F%2Fwww.zhizhihu.com%2Fhtml%2Fy2009%2F604.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/16/23125550.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">搜狗竟然也有了基于内容图像检索应用</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table><h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.zhizhihu.com/html/y2009/438.html" title="今天有同学问我CBIR的相关站点，我就推荐一下">今天有同学问我CBIR的相关站点，我就推荐一下</a> (0)</li><li><a href="http://www.zhizhihu.com/html/y2011/3350.html" title="搜狗互联网图片库2.0（SogouP2.0）正式发布">搜狗互联网图片库2.0（SogouP2.0）正式发布</a> (4)</li><li><a href="http://www.zhizhihu.com/html/y2011/3291.html" title="搜狗竟然也有了基于内容图像检索应用">搜狗竟然也有了基于内容图像检索应用</a> (3)</li><li><a href="http://www.zhizhihu.com/html/y2011/2737.html" title="再收集一下基于内容图像检索系统">再收集一下基于内容图像检索系统</a> (7)</li><li><a href="http://www.zhizhihu.com/html/y2011/2605.html" title="最近图像检索应用的新闻">最近图像检索应用的新闻</a> (0)</li><li><a href="http://www.zhizhihu.com/html/y2010/2443.html" title="图像检索垂直应用热了？-淘宝图想">图像检索垂直应用热了？-淘宝图想</a> (21)</li><li><a href="http://www.zhizhihu.com/html/y2010/2327.html" title="介绍一家新公司：淘淘搜(搜图购)">介绍一家新公司：淘淘搜(搜图购)</a> (11)</li><li><a href="http://www.zhizhihu.com/html/y2010/1971.html" title="谷歌新图片搜索，有点模仿微软Bing">谷歌新图片搜索，有点模仿微软Bing</a> (21)</li><li><a href="http://www.zhizhihu.com/html/y2010/1745.html" title="[搜索]5个黑白图像搜索引擎">[搜索]5个黑白图像搜索引擎</a> (14)</li><li><a href="http://www.zhizhihu.com/html/y2010/1573.html" title="Google Image Swirl-聚类多样性的CBIR">Google Image Swirl-聚类多样性的CBIR</a> (24)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.zhizhihu.com/html/y2009/604.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

