我使用Lucene.net索引內容&文件等..在網站上。該指數是非常簡單的格式如下:使用Lucene.net索引多語言內容
LuceneId - unique id for Lucene (TypeId + ItemId) TypeId - the type of text (eg. page content, product, public doc etc..) ItemId - the web page id, document id etc.. Text - the text indexed Title - web page title, document name etc.. to display with the search results
我已經得到了這些選項,以適應其服務的多語言內容:
- 爲每種語言創建一個單獨的索引。例如。 Lucene-enGB,Lucene-frFR等。
- 保留一個索引併爲其添加一個額外的「語言」字段以過濾結果。
哪一個是最好的選擇 - 還是有另一個?我之前沒有使用多個索引,所以我傾向於第二個。