solr lucene space in word(String)break in 4 part than search with *

时间:2014-01-11 06:18:02

标签: regex string solr lucene alfresco

我是lucene搜索的新人 我在alfresco中有String,如引用(1980)01 CCH 2013 CochinTrib ,我有4个部分的搜索字符串,完整引用字符串引文= (年)卷期刊page_no <登记/> 比输入在搜索字符串中给出的年份和音量搜索字符串是 - &gt; *(1980)01 * 搜索结果给出的时候也给了年份卷期刊page_no 搜索字符串是 - &gt; (1980)01 CCH 2013 它也会给出结果,但是当给出输入字符串年份期刊page_no而不是搜索字符串是 - *(1980)* CCH 2013 * 比搜索结果给0

下面给出的查询

  1. +路径:&#34; //应用程式:company_home //厘米:CCH_India //厘米:Direct_Tax //厘米:Case_Laws //厘米:例// &#34; +(TYPE:&#34; dTaxCaseLaws:caseLawsDoc&#34; NOT TYPE:&#34; dTaxReadyReckoner:readyreckonerDoc&#34; NOT TYPE:&#34; dTaxDtaa:dtaaDoc&#34;)+ @cch \:contentState:&# 34;已发布&#34; +(@dTaxCaseLaws \:cchCitation:&#34; (2013)&#34;或@dTaxCaseLaws \:equivalentCitation:&#34; (2013) *&#34)
  2. +路径:&#34; //应用程式:company_home //厘米:CCH_India //厘米:Direct_Tax //厘米:Case_Laws //厘米:例// &#34; +(TYPE:&#34; dTaxCaseLaws:caseLawsDoc&#34; NOT TYPE:&#34; dTaxReadyReckoner:readyreckonerDoc&#34; NOT TYPE:&#34; dTaxDtaa:dtaaDoc&#34;)+ @cch \:contentState:&# 34;已发布&#34; +(@dTaxCaseLaws \:cchCitation:&#34; 37 &#34;或@dTaxCaseLaws \:equivalentCitation:&#34; 37 *&#34 ;)
  3. +路径:&#34; //应用程式:company_home //厘米:CCH_India //厘米:Direct_Tax //厘米:Case_Laws //厘米:例// &#34; +(TYPE:&#34; dTaxCaseLaws:caseLawsDoc&#34; NOT TYPE:&#34; dTaxReadyReckoner:readyreckonerDoc&#34; NOT TYPE:&#34; dTaxDtaa:dtaaDoc&#34;)+ @cch \:contentState:&# 34;已发布&#34; +(@dTaxCaseLaws \:cchCitation:&#34; CCH &#34;或@dTaxCaseLaws \:equivalentCitation:&#34; CCH *&#34 ;)
  4. +路径:&#34; //应用程式:company_home //厘米:CCH_India //厘米:Direct_Tax //厘米:Case_Laws //厘米:例// &#34; +(TYPE:&#34; dTaxCaseLaws:caseLawsDoc&#34; NOT TYPE:&#34; dTaxReadyReckoner:readyreckonerDoc&#34; NOT TYPE:&#34; dTaxDtaa:dtaaDoc&#34;)+ @cch \:contentState:&# 34;已发布&#34; +(@dTaxCaseLaws \:cchCitation:&#34; 320 *&#34;或@dTaxCaseLaws \:equivalentCitation:&#34; * 320 *&#34;)
  5. +路径:&#34; //应用程式:company_home //厘米:CCH_India //厘米:Direct_Tax //厘米:Case_Laws //厘米:例// &#34; +(TYPE:&#34; dTaxCaseLaws:caseLawsDoc&#34; NOT TYPE:&#34; dTaxReadyReckoner:readyreckonerDoc&#34; NOT TYPE:&#34; dTaxDtaa:dtaaDoc&#34;)+ @cch \:contentState:&# 34;已发布&#34; +(@ dTaxCaseLaws \:cchCitation:&#34; (2013)37 CCH 320 *&#34;或@dTaxCaseLaws \:equivalentCitation:&#34; (2013) 37 CCH 320 &#34;)
  6. +路径:&#34; //应用程式:company_home //厘米:CCH_India //厘米:Direct_Tax //厘米:Case_Laws //厘米:例// &#34; +(TYPE:&#34; dTaxCaseLaws:caseLawsDoc&#34; NOT TYPE:&#34; dTaxReadyReckoner:readyreckonerDoc&#34; NOT TYPE:&#34; dTaxDtaa:dtaaDoc&#34;)+ @cch \:contentState:&# 34;已发布&#34; +(@ dTaxCaseLaws \:cchCitation:&#34; (2013)37 CCH &#34;或@dTaxCaseLaws \:equivalentCitation:&#34; ( 2013)37 CCH *&#34;)
  7. +路径:&#34; //应用程式:company_home //厘米:CCH_India //厘米:Direct_Tax //厘米:Case_Laws //厘米:例// &#34; +(TYPE:&#34; dTaxCaseLaws:caseLawsDoc&#34; NOT TYPE:&#34; dTaxReadyReckoner:readyreckonerDoc&#34; NOT TYPE:&#34; dTaxDtaa:dtaaDoc&#34;)+ @cch \:contentState:&# 34;已发布&#34; +(@ dTaxCaseLaws \:cchCitation:&#34; (2013)37 * 320 *&#34;或@dTaxCaseLaws \:equivalentCitation:&#34; *(2013)37 * 320 *&#34)
  8. +路径:&#34; //应用程式:company_home //厘米:CCH_India //厘米:Direct_Tax //厘米:Case_Laws //厘米:例// &#34; +(TYPE:&#34; dTaxCaseLaws:caseLawsDoc&#34; NOT TYPE:&#34; dTaxReadyReckoner:readyreckonerDoc&#34; NOT TYPE:&#34; dTaxDtaa:dtaaDoc&#34;)+ @cch \:contentState:&# 34;已发布&#34; +(@ dTaxCaseLaws \:cchCitation:&#34; (2013)* CCH * 320 *&#34;或@dTaxCaseLaws \:equivalentCitation:&#34; *(2013)* CCH 320 *&#34;)
  9. +路径:&#34; //应用程式:company_home //厘米:CCH_India //厘米:Direct_Tax //厘米:Case_Laws //厘米:例// &#34; +(TYPE:&#34; dTaxCaseLaws:caseLawsDoc&#34; NOT TYPE:&#34; dTaxReadyReckoner:readyreckonerDoc&#34; NOT TYPE:&#34; dTaxDtaa:dtaaDoc&#34;)+ @cch \:contentState:&# 34;已发布&#34; +(@dTaxCaseLaws \:cchCitation:&#34; 37 CCH 320 *&#34;或@dTaxCaseLaws \:equivalentCitation:&#34; * 37 CCH 320 *&#34; )
  10. +路径:&#34; //应用程式:company_home //厘米:CCH_India //厘米:Direct_Tax //厘米:Case_Laws //厘米:例// &#34; +(TYPE:&#34; dTaxCaseLaws:caseLawsDoc&#34; NOT TYPE:&#34; dTaxReadyReckoner:readyreckonerDoc&#34; NOT TYPE:&#34; dTaxDtaa:dtaaDoc&#34;)+ @cch \:contentState:&# 34;已发布&#34; +(@ dTaxCaseLaws \:cchCitation:&#34; (2013)37 &#34;或@dTaxCaseLaws \:equivalentCitation:&#34; (2013 )37 *&#34;)
  11. +路径:&#34; //应用程式:company_home //厘米:CCH_India //厘米:Direct_Tax //厘米:Case_Laws //厘米:例// &#34; +(TYPE:&#34; dTaxCaseLaws:caseLawsDoc&#34; NOT TYPE:&#34; dTaxReadyReckoner:readyreckonerDoc&#34; NOT TYPE:&#34; dTaxDtaa:dtaaDoc&#34;)+ @cch \:contentState:&# 34;已发布&#34; +(@ dTaxCaseLaws \:cchCitation:&#34; (2013)* CCH &#34;或@dTaxCaseLaws \:equivalentCitation:&#34; ( 2013)* CCH *&#34;)
  12. +路径:&#34; //应用程式:company_home //厘米:CCH_India //厘米:Direct_Tax //厘米:Case_Laws //厘米:例// &#34; +(TYPE:&#34; dTaxCaseLaws:caseLawsDoc&#34; NOT TYPE:&#34; dTaxReadyReckoner:readyreckonerDoc&#34; NOT TYPE:&#34; dTaxDtaa:dtaaDoc&#34;)+ @cch \:contentState:&# 34;已发布&#34; +(@dTaxCaseLaws \:cchCitation:&#34; (2013)* 320 *&#34;或@dTaxCaseLaws \:equivalentCitation:&#34; *(2013)* 320 * &#34)
  13. +路径:&#34; //应用程式:company_home //厘米:CCH_India //厘米:Direct_Tax //厘米:Case_Laws //厘米:例// &#34; +(TYPE:&#34; dTaxCaseLaws:caseLawsDoc&#34; NOT TYPE:&#34; dTaxReadyReckoner:readyreckonerDoc&#34; NOT TYPE:&#34; dTaxDtaa:dtaaDoc&#34;)+ @cch \:contentState:&# 34;已发布&#34; +(@ dTaxCaseLaws \:cchCitation:&#34; 37 CCH &#34;或@dTaxCaseLaws \:equivalentCitation:&#34; 37 CCH *& #34)
  14. +路径:&#34; //应用程式:company_home //厘米:CCH_India //厘米:Direct_Tax //厘米:Case_Laws //厘米:例// &#34; +(TYPE:&#34; dTaxCaseLaws:caseLawsDoc&#34; NOT TYPE:&#34; dTaxReadyReckoner:readyreckonerDoc&#34; NOT TYPE:&#34; dTaxDtaa:dtaaDoc&#34;)+ @cch \:contentState:&# 34;已发布&#34; +(@dTaxCaseLaws \:cchCitation:&#34; 37 * 320 *&#34;或@dTaxCaseLaws \:equivalentCitation:&#34; * 37 * 320 *&#34; )
  15. +路径:&#34; //应用程式:company_home //厘米:CCH_India //厘米:Direct_Tax //厘米:Case_Laws //厘米:例// &#34; +(TYPE:&#34; dTaxCaseLaws:caseLawsDoc&#34; NOT TYPE:&#34; dTaxReadyReckoner:readyreckonerDoc&#34; NOT TYPE:&#34; dTaxDtaa:dtaaDoc&#34;)+ @cch \:contentState:&# 34;已发布&#34; +(@dTaxCaseLaws \:cchCitation:&#34; CCH 320 *&#34;或@dTaxCaseLaws \:equivalentCitation:&#34; * CCH 320 *&#34;)< / LI>

    我在4个部分打破sting时有这些查询 1,2,3,4,5,6,9,10,13,15这些查询给出了结果但是 7,8,11,12,14查询给出不给出结果

    但搜索字符串相同 如何搜索这样请帮助

1 个答案:

答案 0 :(得分:0)

您也可以尝试这样

  

“\(1980)\ 2013”​​~5

它给你