2017年5月11日
    
 
        
        
摘要:        
#include<stdio.h>#include<stdlib.h> #define LIST_INIT_SIZE 100#define LIST_INCREMENT 10 typedef char* Status;; int *p, *q; typedef struct { int *elm;     
阅读全文
 
        
            posted @ 2017-05-11 16:27
paulversion
阅读(177)
推荐(0)
        
 
		
    
        
            
        
         
        2017年5月9日
    
 
        
        
摘要:        
q - 查询字符串,这个是必须的。如果查询所有*:* ,根据指定字段查询(Name:张三 AND Address:北京) fq - (filter query)过虑查询,作用:在q查询符合结果中同时是fq查询符合的,例如:q=Name:张三&fq=createDate:[2014-06-18 TO     
阅读全文
 
        
            posted @ 2017-05-09 09:50
paulversion
阅读(196)
推荐(0)
        
 
		
    
        
            
        
         
        2017年5月8日
    
 
        
        
摘要:        
首先在solrconfig.xml(我的是保存在/usr/local/tomcat/solrhome/mycore/conf/下)的<requestHandler name="/select" class="solr.SearchHandler">之上添加 dataSource是数据库数据源。Ent    
阅读全文
 
        
            posted @ 2017-05-08 22:09
paulversion
阅读(195)
推荐(0)
        
            
        
        
摘要:        
1、配置solr6.5自带中文分词。复制/usr/local/solr/contrib/analysis-extras/lucene-libs/lucene-analyzers-smartcn-6.5.0.jar到/usr/local/tomcat/webapps/solr/WEB-INF/lib/    
阅读全文
 
        
            posted @ 2017-05-08 21:52
paulversion
阅读(160)
推荐(0)
        
            
        
        
摘要:        
首先在solrhome(solrhome的路径和配置见中solr的web.xml)http://www.cnblogs.com/paulversion/p/6827949.html 中创建mycore目录;    
阅读全文
 
        
            posted @ 2017-05-08 21:40
paulversion
阅读(154)
推荐(0)
        
            
        
        
摘要:        
第一步:去官网下载所需的软件包, jdk1.8 wget http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz solr6.5    
阅读全文
 
        
            posted @ 2017-05-08 21:31
paulversion
阅读(200)
推荐(0)
        
 
		
    
        
            
        
         
        2017年3月11日
    
 
        
        
摘要:        
class BinaryFind{ public void find(int arr[],int left,int right,int a){ if(left<=right){ int midIndex=(left+right)/2; if(a==arr[midIndex]){ System.out    
阅读全文
 
        
            posted @ 2017-03-11 14:04
paulversion
阅读(107)
推荐(0)
        
            
        
        
摘要:        
class QuickSort{ // 交换元素位置	public void swap(int array[], int i , int k) { int temp = array[i]; array[i] = array[k]; array[k] = temp; } public int part    
阅读全文
 
        
            posted @ 2017-03-11 13:15
paulversion
阅读(91)
推荐(0)
        
 
		
    
        
            
        
         
        2017年3月10日
    
 
        
        
摘要:        
for(int i=1;i<a.length;i++){ int insertValue=a[i]; int index=i-1; while(index>=0&&insertValue<a[index]){ a[index+1]=a[index]; index--; } a[index+1]=in    
阅读全文
 
        
            posted @ 2017-03-10 16:23
paulversion
阅读(80)
推荐(0)
        
            
        
        
摘要:        
for(int i=0;i<a.length-1;i++){ int tm=0; int min_index=i; int min=a[i]; for(int j=i+1;j<a.length;j++){ if(min>a[j]){ min_index=j; min=a[j]; } } tm=a[i    
阅读全文
 
        
            posted @ 2017-03-10 16:22
paulversion
阅读(77)
推荐(0)