solr

Apache Solr: Faceted Search on multivalued fields

≡放荡痞女 提交于 2019-12-14 03:07:41
问题 Im currently working on a solr based search application. I have two multivalued fields for example: The data is read out of a database. <int name="id">1</int> <arr name="type"> <str>Marke</str> <str>Modell</str> <str>Fahrzeugtyp</str> <str>engine</str> </arr> <arr name="value"> <str>Volkswagen</str> <str>Golf</str> <str>Golf TDI</str> <str>V-Engine</str> In my current solr configuration there is no relationship between these two multivalued fields. So that i can say "Marke = Volkswagen".

SolR : NullPointerException when using spellcheck.q

丶灬走出姿态 提交于 2019-12-14 02:29:34
问题 I've already post about a problem wich brought me to this error, but I write it something more specific about the error : When I use spellcheck.q in my query to define what will be "spellchecked", I always have this error, for every configuration I try : java.lang.NullPointerException at org.apache.solr.handler.component.SpellCheckComponent.getTokens(SpellCheckComponent.java:476) at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:131) at org.apache.solr

Solr Numeric Overflow

老子叫甜甜 提交于 2019-12-14 02:06:10
问题 I am having problems with SOLR using DataImportHandler, I am making a connection with oracle 10g database and I need import 160 millions records, but when solr reaches around 60 Millions, he throws a exception and breaks the import: java.sql.SQLException: Overflow Numérico at oracle.jdbc.driver.NumberCommonAccessor.throwOverflow(NumberCommonAccessor.java:4381) at oracle.jdbc.driver.NumberCommonAccessor.getBigDecimal(NumberCommonAccessor.java:2509) at oracle.jdbc.driver.NumberCommonAccessor

Installing Solr in a XAMPP server in a LINUX server

血红的双手。 提交于 2019-12-14 00:26:13
问题 I try to install Solr PHP extension to my webserver. I already have an XAMPP server and I'm using PECL to install solr $ cd /opt/lampp/bin $ sudo ./pecl install solr-1.0.1 But I got the following error: checking libxml2 install dir... /usr/lib checking for xml2-config path... configure: error: xml2-config not found. Please check your libxml2 installation. ERROR: `/tmp/pear/temp/solr/configure --enable-solr=yes --enable-solr-debug=no --with-curl= /usr --with-libxml-dir=/usr/lib' failed During

Solr7.3.0入门教程,部署Solr到Tomcat,配置Solr中文分词器

一曲冷凌霜 提交于 2019-12-14 00:13:05
solr 基本介绍 Apache Solr (读音: SOLer) 是一个开源的搜索服务器。Solr 使用 Java 语言开发,主要基于 HTTP 和 Apache Lucene 实现。Apache Solr 中存储的资源是以 Document 为对象进行存储的。每个文档由一系列的 Field 构成,每个 Field 表示资源的一个属性。Solr 中的每个 Document 需要有能唯一标识其自身的属性,默认情况下这个属性的名字是 id,在 Schema 配置文件中使用:id进行描述。 Solr是一个高性能,采用Java开发,基于Lucene的全文搜索服务器。文档通过Http利用XML加到一个搜索集合中。查询该集合也是通过 http收到一个XML/JSON响应来实现。它的主要特性包括:高效、灵活的缓存功能,垂直搜索功能,高亮显示搜索结果,通过索引复制来提高可用性,提 供一套强大Data Schema来定义字段,类型和设置文本分析,提供基于Web的管理界面等。 solr 名称来源 Search On Lucene Replication solr 历史 2004年 CNET 开发 Solar,为 CNET 提供站内搜索服务 2006年1月捐献给 Apache ,成为 Apache 的孵化项目 一年后 Solr 孵化成熟,发布了1.2版,并成为 Lucene 的子项目 2010年6月

how can I use Solr to do real-time search

夙愿已清 提交于 2019-12-13 21:29:20
问题 now we use deltaImport to update data from db to index. but we have some information need a real-time search or near real-time search. what should I do if I use solr to solve this? 回答1: to generate near real-time-search i would update the data in small packages and also update the index in small packages every minute (index update needs only some seconds - depending on the size of new data) don't forget to optimize the index regularly 回答2: This post could be useful for you: Solr and Near Real

Indexing crashes on custom tokenizer

≡放荡痞女 提交于 2019-12-13 20:43:29
问题 We are building a Solr plug-in to link our proprietary engine. The intended use is replacing the standard tokenizer altogether. (This is the background: Hybrid search and indexing: words and token metadata in Solr) When trying to index a test document in the Solr Admin: id,title 12345,A test title I am getting an exception where, I suppose, my tokenizer is kicking in. The configuration changes (schema.xml) are: <fieldType name="text_general" class="solr.TextField" positionIncrementGap="100">

Solr index time boost on document date

白昼怎懂夜的黑 提交于 2019-12-13 20:12:17
问题 I'm trying to index a wiki (using a direct access to the wiki db) and trying to negatively boost on document date (so that the old documents appear further down in the results). There is a great solr-wiki page on boosting and related topics: http://wiki.apache.org/solr/SolrRelevancyFAQ It simply says to do the following: "Use an index-time boost that is larger for newer documents" But how and where? Which part of the solr configuration do I have to change to use an index-time boost? Do I have

Grouping documents in solr

人走茶凉 提交于 2019-12-13 19:59:47
问题 I want to index orders and corresponding order entries in Solr to display it in our e-commerce site. I am planning to adopt a De-normalized approach by repeating order details with every order entries to reduce request latency. But at the same time I need to group records by orderid to find order total for a specified duration. Is it possible to achieve this without going for a separate index for orders alone? 回答1: Yes this is possible, you can user Result Grouping / Field Collapsing for your

Documents are reflecting after some delay in Solr 3.6

拈花ヽ惹草 提交于 2019-12-13 19:25:51
问题 Working with Solr 3.6 for ASP.net application. We're using SolrNet library. We have a custom program written in asp.net to incrementally add a documents to Solr using SolrNet. This monitors the progress for inserting documents into Solr. The issue is, the application shows process as completed but checking into Solr results we only see few documents in results, and not all of the document. Although checking it again after 15 minutes, few more documents are now listed in Solr results, which