導航:首頁 > 源碼編譯 > lucenenet源碼下載

lucenenet源碼下載

發布時間:2022-12-31 10:07:40

① 誰有lucene.net搜索引擎下載地址,發送到[email protected]

lucene.net的一些基本使用方法和概念
http://searcher.org.cn/html/lucene/20071010/285.html
利用Lucene.net搜索引擎進行多條件搜索的做法
http://hi..com/aibosoft/blog/item/23339bd36b422e35970a16e8.html

② net開源項目整理

整理一些平時收藏和應用的開源代碼,方便自己學習和查閱

1.應用

nopcommerce ,開源電商網站,開發環境asp.net mvc(未支持.net core),使用技術(autofac,ef,頁面插件等)

https://github.com/nopSolutions/nopCommerce

OrchardCMS ,內容管理網站

https://github.com/OrchardCMS/Orchard(.net版本)

https://github.com/OrchardCMS/Orchard2(.net core版本)

ABP(aspnetboilerplate) ,提供一系列工具用於web應用創建,支持 ASP.NET Core, ASP.NET MVC & Web API,也提供了web應用的模板

https://github.com/aspnetboilerplate/aspnetboilerplate(.net core 版本,tag分支有支持.net版本的)

IdentityServer ,用戶授權網站(支持openid和OAuth 2.0),可用於單點登錄和第三方授權等

https://github.com/IdentityServer/IdentityServer3(.net版本)

https://github.com/IdentityServer/IdentityServer4(.net core版本)

eShopOnContainers 微軟提供的微服務實例

https://github.com/dotnet-architecture/eShopOnContainers

PetShop 三層架構經典例子,用於新手學習,不過aspx有點過時了

https://github.com/songhhwd01/PetShop

BlogEngine.NET 博客網站,也是aspx

https://github.com/rxtur/BlogEngine.NET

2.組件

Lucene.Net 全文檢索開發組件

https://github.com/apache/lucenenet

ServiceStack 半開源,用於創建web服務

https://github.com/ServiceStack/ServiceStack

MassTransit 可用於創建基於消息的服務和應用,依賴於RabbitMQ

https://github.com/MassTransit/MassTransit

stateless 簡單的工作流開發組件,不支持在線定製工作流

https://github.com/dotnet-state-machine/stateless

Hangfire 任務調度開發利器

https://github.com/HangfireIO/Hangfire

Jwt.Net 用於生成JWT (JSON Web Token) 和JWT校驗

https://github.com/jwt-dotnet/jwt

npoi 支持office文件的讀寫

https://github.com/tonyqus/npoi

StackExchange.Redis Redis的.net客戶端

https://github.com/StackExchange/StackExchange.Redis

CacheManager 用於緩存的管理,支持Redis.Memcached,couchbase等

https://github.com/MichaCo/CacheManager

Autofac Ioc組件,用於依賴注入

https://github.com/autofac/Autofac

LightGBM 用於機器學習

https://github.com/Microsoft/LightGBM

3.框架

asp.net mvc

https://github.com/aspnet/Mvc

Nancy 類似asp.net mvc,web開發框架

https://github.com/NancyFx/Nancy

4.其他

dotnet core 主頁 ,提供dotnet core相關知識的索引和例子,方便快速入門

https://github.com/dotnet/core

.net源碼

https://github.com/Microsoft/referencesource

③ lucene怎麼用

Lucene是一個全文檢索系統框架,開源的。
用起來比較方便,去Lucene的官網上下一個包並導入到你的工程中就可以調用包裡面的類了。
一般的書裡面介紹的版本都是1.4.3或者稍微高級一點的,不過現在lucene3.0正式發布,一些函數調用方法已經改變了,你可以下載一個版本低一點的Lucene比較適合學習~
當然你直接從3.0入手的話網上資料也是非常豐富的~

④ 怎麼使用dotlucene或lucene.net

真的?

⑤ lucene.net對word文檔建立索引

使用lucene的標准分析器對中文是按照單字索引的,也是能搜中文的,只是准確度不高而已。你指的不能搜中文這個問題最好是檢查下編碼方面有沒問題。如果想提高中文准確度必須使用分片語件擴展lucene的標准分析器。分詞是個難題,沒有最好,只有更好。謝謝

⑥ lucene按匹配度排序是怎麼做到的

Lucene的搜索結果默認按相關度排序,這個相關度排序是基於內部的Score和DocID,Score又基於關鍵詞的內部評分和做索引時的boost。默認Score高的排前面,如果Score一樣,再按索引順序,先索引的排前面。那麼有人問了,如果我要先索引的排後面怎麼辦呢?隱士研究了源碼後發現這是相當簡單的事情。以下代碼基於Lucene 2.0。

看Sort的默認構造函數,相關度就是SortField.FIELD_SCORE和SortField.FIELD_DOC的組合。

java 代碼
/**
* Sorts by computed relevance. This is the same sort criteria as calling
* {@link Searcher#search(Query) Searcher#search()}without a sort criteria,
* only with slightly more overhead.
*/
public Sort() {
this(new SortField[] { SortField.FIELD_SCORE, SortField.FIELD_DOC });
}
那麼該如何構造我們需要的SortField呢?請看SortField的一個構造函數,有一個參數reverse可供我們調整結果集的順序。

java 代碼
/** Creates a sort, possibly in reverse, by terms in the given field with the
* type of term values explicitly given.
* @param field Name of field to sort by. Can be <code>null</code> if
* <code>type</code> is SCORE or DOC.
* @param type Type of values in the terms.
* @param reverse True if natural order should be reversed.
*/
public SortField (String field, int type, boolean reverse) {
this.field = (field != null) ? field.intern() : field;
this.type = type;
this.reverse = reverse;
}
由此可見,只要構造一個SortField[]就可以實現我們要的功能,請看:

java 代碼
// 評分降序,評分一樣時後索引的排前面
new SortField[] { SortField.FIELD_SCORE, new SortField(null, SortField.DOC, true) }

// 評分升序,評分一樣時後索引的排前面,呵呵,此為最不相關的排前面,挺有趣的
new SortField[] { new SortField(null, SortField.SCORE, true), new SortField(null, SortField.DOC, true) }
呵呵,只要將此SortField[]作為參數傳入Sort的構造函數得到Sort的一個instance,將此instance傳入searcher.search(query, sort)即可得到了期望的結果。

⑦ c#如何引入lucene.net

如果你用lucene.net的話,只能下到2.0版本的,因為2.0以後轉入商業化了,開源版本定格在了2.0。下載的網址同樓上。
至於引用,沒什麼好說的吧,直接引用那幾個dll就行了,不過分析器也就是Analyzer可能要自己寫,或者下一些現成的,比如ChineseAnalyzer,如果用它默認的那個標准分析器,對於中文的分詞會有些問題,也就是常說的CJK問題

⑧ Lucene.Net IndexSearcher index = new IndexSearcher(path);

一般中文都是用google的paoding分詞。。你可以去google免費下載使用
如果是lucene可以自定義Field啊?
暈。。要例子。。貼一個給你:paoding的標准文檔例子:
String IDNEX_PATH = "E:/paoding_test_index";

//獲取Paoding中文分詞器

Analyzer analyzer = new PaodingAnalyzer();

//建立索引

IndexWriter writer = new IndexWriter(IDNEX_PATH, analyzer, true);

Document doc = new Document();

Field field = new Field("content", "你好,世界!", Field.Store.YES,

Field.Index.TOKENIZED, Field.TermVector.WITH_POSITIONS_OFFSETS);

doc.add(field);

writer.addDocument(doc);

writer.close();

System.out.println("Indexed success!");

//檢索

IndexReader reader = IndexReader.open(IDNEX_PATH);

QueryParser parser = new QueryParser("content", analyzer);

Query query = parser.parse("你好");

Searcher searcher = new IndexSearcher(reader);

Hits hits = searcher.search(query);

if (hits.length() == 0) {

System.out.println("hits.length=0");

}

Document doc2 = hits.doc(0);

//高亮處理

String text = doc2.get("content");

TermPositionVector tpv = (TermPositionVector) reader.getTermFreqVector(

0, "content");

TokenStream ts = TokenSources.getTokenStream(tpv);

Formatter formatter = new Formatter() {

public String highlightTerm(String srcText, TokenGroup g) {

if (g.getTotalScore() <= 0) {

return srcText;

}

return "<b>" + srcText + "</b>";

}

};

Highlighter highlighter = new Highlighter(formatter, new QueryScorer(

query));

String result = highlighter.getBestFragments(ts, text, 5, "…");

System.out.println("result:\n\t" + result);

⑨ 請問lucene3.6.1 + IKanalyzer2012應該如何配置,網上查資料總是提到一個src/目錄,可是我的沒有這個目錄。

源碼下載-src.tgz的文件,使用的話要下載.tgz或則.zip的文件壓縮包。我一般下載的是.zip包。

⑩ 如何在eclipse中導入lucene源碼

1.啟動eclipse,使用svn插件從https //svn apache org/repos/asf/lucene把trunk代碼checkout出來。 2.如果你沒有安裝ant,那麼先安裝ant(ant.apache.org)。
3.進入cmd,切入到源代碼目錄(在lucene和solr目錄的上一級)。
4.然後使用ant eclipse(如果你沒有安裝ivy的話,ant會提示你安裝,按照提示安裝)
5.在eclipse中創建java project,勾掉Use default location,選擇luence,然後下一步直到完成導入lucene,同樣的導入solr。
6.因為solr引用lucene,所以在solr的buildpath中加入對lucene項目引用。

閱讀全文

與lucenenet源碼下載相關的資料

熱點內容
微信怎麼發應用app 瀏覽:776
花生殼dns伺服器地址 瀏覽:648
squad伺服器一般什麼時候人多 瀏覽:479
程序員戰門課 瀏覽:474
config保存伺服器地址 瀏覽:317
預訂網吧座位的app叫什麼 瀏覽:416
香港伺服器主機地址 瀏覽:640
網店美工pdf 瀏覽:447
一堆文件夾怎麼弄出來 瀏覽:743
博途如何編譯硬體 瀏覽:418
fortran程序pdf 瀏覽:504
電池消耗演算法 瀏覽:394
伺服器中斷連接怎麼處理 瀏覽:222
上世紀互聯網不發達程序員很難 瀏覽:841
語音識別android開源 瀏覽:762
地埋式垃圾壓縮中轉站 瀏覽:902
apachehttpdlinux 瀏覽:944
快遞員中通app預付款是什麼 瀏覽:843
java路徑轉義 瀏覽:857
keytool加密演算法 瀏覽:131