我需要索引一個圖形數據庫(Titan與Cassandra作爲後端),使用solr。這可以做到嗎?我們可以使用solr索引圖形數據庫嗎?
回答
請記住,Solr只是一個單位的文件集合。它不關心這些文件之間的關係。
這是誰家的幻燈片份額是誰在使用卡桑德拉和Solr一起
數據被髮送到卡桑德拉然後將其發送到Solr的索引。 Solr支持對Cassandra數據進行全文搜索,即使泰坦在混音中,這也是一個很好的用例。
據其documentation,泰坦支持使用Solr的作爲索引後臺做:
- 全文:支持所有文字謂詞來搜索一個給定的詞,前綴或常規匹配文本屬性表達。
- 地理:支持Geo.WITHIN條件來搜索給定圓內的點。僅支持用於索引和圈子查詢的點。
- 數字範圍:支持比較中的所有數字比較。
- TTL:支持自動過期索引元素。
- 時間:毫秒粒度時間索引。
如果你在Titan中定義了一個使用Solr作爲索引後端的mixed index,Titan會將這些數據放入Solr進行索引。您仍然應該能夠通過Solr直接訪問該數據。 Titan文檔中的示例僅顯示如何通過圖表訪問數據,因爲這是Titan的用途:graph。 Solr不會用於存儲整個圖形數據結構,只是混合索引的內容。
請參閱泰坦關於如何將Titan和Solr一起使用的文檔。
我經歷了文檔。根據我的理解,在泰坦中使用solr作爲後端創建的索引只能用於Titan中的搜索查詢。我想使用solr webapp來索引數據(因爲我們使用數據導入來索引sql db),這樣我就可以提供solr REST服務來搜索這些數據。如果我錯了,請糾正我。 –
更新了我的答案 –
可以將Solr用作Titan圖形數據庫的索引後端。爲此目的應該考慮一些不同的參數。這些參數如下。
# Configure a Solr backend named "search" at localhost:8983
# and path prefix /solr/titan.solr1.
# The collection must already exist -- see the manual for info.
# The indexing backend used to extend and optimize Titan's query
# functionality. This setting is optional. Titan can use multiple
# heterogeneous index backends. Hence, this option can appear more than
# once, so long as the user-defined name between "index" and "backend" is
# unique among appearances.Similar to the storage backend, this should be
# set to one of Titan's built-in shorthand names for its standard index
# backends (shorthands: lucene, elasticsearch, es, solr) or to the full
# package and classname of a custom/third-party IndexProvider
# implementation.
#
# Default: elasticsearch
# Data Type: String
# Mutability: GLOBAL_OFFLINE
#
# Settings with mutability GLOBAL_OFFLINE are centrally managed in Titan's
# storage backend. After starting the database for the first time, this
# file's copy of this setting is ignored. Use Titan's Management System
# to read or modify this value after bootstrapping.
index.search.backend=solr
# The operation mode for Solr which is either via HTTP (`http`) or using
# SolrCloud (`cloud`)
#
# Default: cloud
# Data Type: String
# Mutability: GLOBAL_OFFLINE
#
# Settings with mutability GLOBAL_OFFLINE are centrally managed in Titan's
# storage backend. After starting the database for the first time, this
# file's copy of this setting is ignored. Use Titan's Management System
# to read or modify this value after bootstrapping.
index.search.solr.mode=http
# List of URLs to use to connect to Solr Servers (LBHttpSolrClient is
# used), don't add core or collection name to the URLS.
#
# Default: http://localhost:8983/solr
# Data Type: class java.lang.String[]
# Mutability: MASKABLE
index.search.solr.http-urls=http://localhost:8983/solr/
請注意,"search"
參加這些參數的名稱應該是相同應用程序中的索引名。
- 1. 我可以使用Solr來搜索現有的Lucene索引嗎?
- 2. 我們可以直接將WARC文件索引到Solr嗎?
- 3. Solr - 索引MySQL數據庫
- 4. 我們可以在同一個Solr索引中使用不同的語言進行索引和搜索嗎?
- 5. 我們可以搜索Solr搜索引擎中的.txt文件嗎?
- 6. 我們可以將Apache Solr用於像mysql這樣的關係數據庫嗎?
- 7. NHibernate可以在QueryOver中使用數據庫索引嗎?
- 8. 我們可以採用Lucene索引從rdf表中檢索數據嗎?
- 9. 我們可以使用JSON作爲數據庫嗎?
- 10. 除了我們可以在android中使用的數據庫嗎?
- 11. 我們可以在piwik中使用MS sql數據庫嗎?
- 12. 我們可以在Android上使用RecordStore數據庫嗎?
- 13. 我們可以使用SQLAlchemy獲取postgres數據庫轉儲嗎?
- 14. 我們可以使用odbc只與java連接數據庫嗎?
- 15. 可以發送solr json數據而不是索引文件嗎?
- 16. 我們可以在索引數據庫中創建多少個索引?
- 17. Neo4j我們可以在查詢圖形數據庫中有編程功能嗎
- 18. 我們可以將Spark GraphX圖形數據導出到Titan圖形數據庫嗎?
- 19. 我們可以製作圖形在asp.net中顯示圖形中的數據嗎?
- 20. 我們可以使用php腳本將圖形數據導出爲pdf嗎?
- 21. 我們可以在拼音索引中使用SpanNearQuery嗎?
- 22. 我可以使用lucene索引RDB嗎?
- 23. 我們可以在Entity Framework中映射數據庫視圖嗎?
- 24. 升級apache版本後可以使用舊的apache solr索引數據嗎?
- 25. 我們可以告訴Solr/Lucene max chars分析搜索嗎?
- 26. 我們可以使用java從MySql數據庫獲取添加的圖像嗎?
- 27. 圖形數據庫邊緣索引
- 28. solr - 我可以使用它嗎?
- 29. 我可以自己使用solr嗎?
- 30. 我們可以限制索引器中索引器的數目嗎?
是的,我知道平面文件的約束。但我想將關係索引爲原子文檔(我們使用連接實現與sql db相同)。我們目前保持與泰坦之間的關係,我想索引它們。卡桑德拉是泰坦的後端,卡桑德拉的數據和柱子系由泰坦管理。我無法直接爲它們編制索引。 –