solr

Solarium gets “Permission Denied” when trying to connect apache solr at local ip

跟風遠走 提交于 2019-12-13 05:25:17
问题 I have a drupal 8 site on the same physical server as apache solr (5.2.1). Drupal 8 uses the search_api_solr contrib module, which uses Solarium (installed by composer) to talk to the solr server using the http api. I have successfully installed solr and created a core. I can query the core using cUrl on the linux command line, using various linux users. I can access the solr admin screen in a browser (over vpn with 192.168 ip or domain resolving to such) and view the core I created on the

Solr: FileListEntityProcessor is executing sub entities multiple times

烈酒焚心 提交于 2019-12-13 05:22:09
问题 I have configured a dih-import.xml as shown below. The FileListEntityProcessor walks through some folders and then executes a XPathEntity and a DB-Entity for each file. When I executed a full import for ~30.000 files, the import took almost 3 hours. Back to the DIH-debug console it showed me, that for the first file that was found 2 db-calls were made, for the 2nd 4, then 6, 8, .. google didn't show me anything on this subject, so I am hoping for you :) Thanks in advance <?xml version="1.0"

Solr search multiple word in query

假装没事ソ 提交于 2019-12-13 04:58:54
问题 I have following fields in solr schema make model city province I created a copyfield search and copy these 4 field in it now I want, if a user is searching for 'audi a4' where audi is a make and a4 is model, I should get result where in a row make is audi and model is a4. In case if I search for 'asd audi asd' then i should get result of audi only. In case if i search for 'asd aasd audi asd a4', then it should display audi a4 results. Please help me to achieve this. Please see schema for

Solr will use Highlighter instead of FastVectorHighlighter warning

ε祈祈猫儿з 提交于 2019-12-13 04:48:07
问题 Hi I'm developing rails app with Solr 4.1 search engine, When I add highlighting to searchSolr start spaming the tomcat6 log with this warning: Jan 29, 2015 12:13:38 PM org.apache.solr.highlight.DefaultSolrHighlighter useFastVectorHighlighter WARNING: Solr will use Highlighter instead of FastVectorHighlighter because *Field_Name* field does not store TermPositions and TermOffsets. Example of my field in schema.xml: <field name="name" type="text" indexed="true" stored="true" multiValued="true"

Solr Multivalued date range from two separate field as sub entity

允我心安 提交于 2019-12-13 04:36:41
问题 I am a Apache Solr beginner. My data-config.xml contains this code <entity name="event"> <field column="event_id" name="id" /> ... <entity name="request_history" query="select request_date, request_expiry_date from request_history where id=event.id"> <field column="request_date" name="start_date" /> <field column="request_expiry_date" name="expire_date" /> </entity> AND following is what in shcema.xml file against those fields <field name="start_date" type="tdate" indexed="true" stored="true"

Solr 5.0.0 is not starting properly in CentOS

a 夏天 提交于 2019-12-13 04:33:20
问题 When I running command bin/solr start -e cloud it is not asking me to collection name and other information like no of replicas and configuration settings. I got following output Welcome to the SolrCloud example! This interactive session will help you launch a SolrCloud cluster on your local workstation. To begin, how many Solr nodes would you like to run in your local cluster? (specify 1-4 nodes) [2] 2 Ok, let's start up 2 Solr nodes for your example SolrCloud cluster. Please enter the port

How to configure solr dataimport handler to parse wikipedia xml document?

房东的猫 提交于 2019-12-13 04:32:21
问题 So this is what I have done so far. I have added a request handler in solrconfig.xml as follows: <requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler"> <lst name="defaults"> <str name="config">wiki-data-config.xml</str> </lst> </requestHandler> In the same configuration directory I have created a file wiki-data-config.xml which contains the following, <dataConfig> <dataSource type="FileDataSource" encoding="UTF-8" /> <document> <entity name="page" pk=

indexing MySQL in Apache Solr

瘦欲@ 提交于 2019-12-13 04:31:16
问题 I am trying to build a search engine for my application. I have a mysql database having nearly 150 tables. Each table has a unique field called DB_ID And various other columns. Now when I am indexing the data using Apache solr is it sufficient to index only the DB_ID column? Also I am very new to Solr and from the tutorials I couldnt find how to index multiple tables in Solr. In my case I have around 150 tables. SO how do I go about the problem? 回答1: Your DB_ID is probably not a useful item

Sorting Solr multivalue fields based on field values

本小妞迷上赌 提交于 2019-12-13 04:29:09
问题 I have multiple Solr instances with separate schemas. I need to receive multivalue field in sorted order, e.g. by type: train_station, airport, city_district, and so on: q=köln&sort=query({!v="type:(airport OR train_station)"}) desc I would like to see airport type document before train_station type. For now I am always getting train_station type at the top. How should I write the query? 回答1: You are getting train_station s at the top because of the IDF. A quick hack to fix it would be to use

Drupal Job board: Faceted Search with “OR” operator, but sort results by most matching facet criterias/term count

倖福魔咒の 提交于 2019-12-13 04:28:58
问题 I'm quite stuck with searching for a solution for my problem and I hope that you can maybe help me. In general I want to build a small job platform. It includes an "Explore"-Section, which is just like a Search-Page with Facets. The actual job-nodes can be tagged with terms of the two vocabulary "skills" and "interests". The facets on the search page allow the user to filter jobs exactly along these skills and interests. However, I want to use the "OR"-Operator for the Facets, so that the