`
wutao8818
  • 浏览: 619671 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
今天把 jaxb 返回的 xml 对象 转到了 lucene 的 document . 然后仍给 index search 一把。还算顺利搞定。 接下来开始解决网络接口。 写一个基于netty的索引服务器。接收client仍过来的xml数据包。 关于netty的资料除了 http://www.jboss.org/netty/ 还有一部分中文的。 http://www.w2tt.cn/viewthread.php?tid=85 大致看了一遍,编码的思路还是相当清晰的。 主要的工作在继承 引用org.jboss.netty.channel.SimpleChannelHandler ...
jaxb 需要 xsd 用 Trang http://www.lifevv.com/java/doc/20080222222903070.html 可以得到xsd 命令 java -jar trang.jar -I xml -O xsd orders.xml orders.xsd http://www.enet.com.cn/article/2007/0906/A20070906812529.shtml 引用   d:\jaxb2\bin>xjc -d d:\temp\src -p com.primeton.governor.dict.xmlloader d:\temp\d ...
What is Distributed Search? When an index becomes too large to fit on a single system, or when a single query takes too long to execute, an index can be split into multiple shards, and Solr can query and merge results across those shards. If single queries are currently fast enough and one simply w ...
http://lucene.apache.org/solr/tutorial.html Analysis Debugging   写道 There is a handy analysis debugging page where you can see how a text value is broken down into words, and shows the resulting tokens after they pass through each filter in the chain.     这个功能可以很方便的看到在经过多个过滤器后切词后我们得到的分词 ...
http://lucene.apache.org/solr/tutorial.html Querying Data 查询没什么可说的。大致看看就明白。 q是查询关键字。fl是返回哪些结果集的字段。结果集是一个xml文档。 引用 Searches are done via HTTP GET on the select URL with the query string in the q parameter. You can pass a number of optional request parameters  to the request handler to control what ...
http://lucene.apache.org/solr/tutorial.html 引用solr svn版本 754854 引用chrish@asimov:~/solr/example/exampledocs$ java -jar post.jar solr.xml monitor.xml solr创建索引的过程起始于xml,要仍给solr一个xml文件。文件的内容包含了solr服务器需要何种方式处理这个xml的内容。 例如一个添加一个文档到solr操作。 solr.xml的文件内容就是 <add> <doc> <field name= ...
http://lucene.apache.org/solr/tutorial.html Text Analysis Example queries demonstrating relevancy improving transformations:     * A search for power-shot matches PowerShot, and adata matches A-DATA due to the use of WordDelimiterFilter and LowerCaseFilter. 可以通过WordDelimiterFilter去除字符间的分割符 LowerC ...
OReilly.Java.I.O.2nd.Edition 5.1. URLs InputStream in = null; try { URL u = new URL("http://www.oreilly.com/"); in = u.openStream(); for (int c = in.read(); c != -1; c = in.read()) { System.out.write(c); } } catch (MalformedURLException ex) { } f ...
http://yonik.wordpress.com/ With CPU cores constantly increasing, there has been some major work done in Lucene/Solr to increase the scalability under multi-threaded load. Read-only IndexReaders One bottleneck was synchronization around the checking of deleted docs in a Lucene IndexReader.  Since a ...
Change the ACEGI_SECURITY_CONTEXT session key to SPRING_SECURITY_CONTEXT Change the ACEGI_SECURITY_LAST_USERNAME session key to SPRING_SECURITY_LAST_USERNAME Change the following taglib definition: <%@ taglib prefix="authz" uri="http://acegisecurity.org/authz"%> to: <%@ ...
一天,有个年轻人来到小米步童鞋店里买了一双鞋子。 这双鞋子成本是15元,标价是21元。 结果是这个年轻人掏出50元要买这双鞋子。 小米步童鞋店当时没有零钱,用那50元向街坊换了50元的零钱,找给年轻人29元。 但是街坊後来发现那50元是假钞,小米步童鞋店无奈之下,还了街坊50元。 现在问题是:小米步童鞋店在这次交易中到底损失了多少钱 ? 股入门书本推荐,炒股一些必备书本
org.springframework.beans.support.PagedListHolder public class PagedListHolder extends Object implements Serializable PagedListHolder is a simple state holder for handling lists of objects, separating them into pages. Page numbering starts with 0. This is mainly targetted at usage in web UIs. Typi ...
Here's an example of the Freemarker files used with the configuration above: /WEB-INF/freemarker/index.ftl (the home page content) Important to note is that we are importing a custom Freemarker macro library (kzspring.ftl) from the classpath:modules folder on line 5, but if we needed to customize i ...
  <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="336" height="280" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"> <param name="src" value="http://img.alimama.cn/b ...
从svn 构建 solr http://lucene.apache.org/solr/version_control.html svn co http://svn.apache.org/repos/asf/lucene/solr/ cd trunk ant ant example ant run-example InfoQ采访了Solr的创建者Yonik Seeley
Global site tag (gtag.js) - Google Analytics