- 浏览: 297770 次
- 性别:
- 来自: 东京
最新评论
-
80后的童年2:
企业级分布式搜索平台Solr视频教程网盘地址:https:// ...
企业级搜索引擎Solr使用入门指南 -
springdata_spring:
apache lucene开源框架demo使用实例教程源代码下 ...
Lucene / Solr 开发经验 -
springdata-jpa:
java web开发分页demo源代码下载:http://ww ...
简易java分页标签 -
zjf_sdnu:
兄弟,script写错了
jqGrid初学备注 -
85600367:
你好,请教一个问题。当进行分布式查询时solr无法查询到Luc ...
Lucene / Solr 开发经验
文章列表
1. Generate self-signed certificate:
clay@clay:~$ $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore /home/clay/clay.keystore
2. Then you will see:
Enter keystore password:
Re-enter new password:
What is your first and last name?
[Unknown]: Clay Zhong
What is the name of your ...
- 2009-03-22 12:17
- 浏览 1250
- 评论(0)
A simple example of an activity diagram
A subsidiary activity diagram
Invoke the subsidiary activity
If you want to show who does what, you can divide an activity diagram
into partitions, which show which actions one class or organization
unit carries out.
A signal indicates that the ...
- 2009-03-04 22:09
- 浏览 3024
- 评论(1)
install.xml
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<installation version="1.0">
<info>
<appname>CLAY</appname>
<appversion>1.0-0208</appversion>
<url>http://www.clayz.com</url>
< ...
- 2009-02-11 01:05
- 浏览 3769
- 评论(0)
To control transaction boundaries yourself, you must use the JTA interface javax.transaction.UserTransaction. The javax.transaction.UserTransaction interface enables you to programmatically control transactions. Here is what the javax.transaction.UserTransaction interface looks like:
public interface ...
- 2009-01-19 22:58
- 浏览 1355
- 评论(0)
项目生命周期:process-resources -> compile -> process-classes -> process-test-resources ->
test-compile -> test -> prepare-package -> package
也可单独运行:
mvn resources:resources \
compiler:compile \
resources:testResources \
compiler:te ...
- 2009-01-06 23:35
- 浏览 3456
- 评论(0)
/**
* @author Clay Zhong, zjclay@gmail.com
* @date Dec 16, 2008
*/
package com.clay.dao;
import java.io.Serializable;
import java.lang.reflect.ParameterizedType;
import java.util.List;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org. ...
- 2009-01-02 17:46
- 浏览 3625
- 评论(2)
import org.acegisecurity.Authentication;
import org.acegisecurity.context.SecurityContext;
import org.acegisecurity.context.SecurityContextHolder;
import org.acegisecurity.ui.WebAuthenticationDetails;
import org.acegisecurity.userdetails.UserDetails;
public class ThreadLocaTest {
public static S ...
- 2008-12-04 23:38
- 浏览 2857
- 评论(0)
本文转自:http://www.yuanma.org/data/2007/0213/article_2302.htm
Acegi是Spring Framework 下最成熟的安全系统,它提供了强大灵活的企业级安全服务,如:
1 : 完善的认证和授权机制,
2 : Http资源访问控制,
3 : Method 调用访问控制,
4 : Access Control List (ACL) 基于对象实例的访问控制,
5 : Yale Central Authentication Service (CAS) 耶鲁单点登陆,
6 : X509 认证,
7 : 当前所有流行容器的认证适配器,
8 : Cha ...
- 2008-11-16 21:15
- 浏览 1767
- 评论(0)
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# & ...
- 2008-11-04 22:37
- 浏览 3005
- 评论(0)
1,假设存在Thesis对象:
package org.cms.po;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* Thesis generated by MyEclipse Persistence Tools
*/
public class Thesis implements java.io.Serializable {
// Fields
private Integer thesisid;
private Project project;
private User ...
- 2008-09-21 10:59
- 浏览 4199
- 评论(0)
一,查询
一个关键字,对一个字段进行查询
QueryParser qp = new QueryParser("content",analyzer);
query = qp.parse(keyword);
Hits hits = searcher.search(query);
模糊查询
Term term = new Term("content",keyword);
FuzzyQuery fq = new FuzzyQuery(term);
Hits hits = searcher.search(fq);
一个关键字,在两个字段中查询
1 ...
- 2008-09-16 23:38
- 浏览 3145
- 评论(0)
将源代码修改为传递字符串,去掉files以及stdin模式。
package com;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.io.StringReader;
import java.io.StringWriter;
import java.io.Writer ...
- 2008-09-15 22:38
- 浏览 2987
- 评论(0)
Ctrl+1 快速修复(最经典的快捷键,就不用多说了)
Ctrl+D: 删除当前行
Ctrl+Alt+↓ 复制当前行到下一行(复制增加)
Ctrl+Alt+↑ 复制当前行到上一行(复制增加)
Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了)
Alt+↑ ...
- 2008-09-15 21:13
- 浏览 932
- 评论(0)
1. web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://jav ...
- 2008-09-15 11:44
- 浏览 3382
- 评论(0)
本文转自 http://www.mail-archive.com/solr-user@lucene.apache.org/msg05645.html
Hi,
The method works, but has the drawback that you need to configure your solr
home inside the war of the web application.
What we did is the following:
Add this to the jboss-service.xml
<mbean code="org.jboss.na ...
- 2008-09-11 22:50
- 浏览 1852
- 评论(0)