solr

SOLR facet search by prefix with results highlighting

旧城冷巷雨未停 提交于 2019-12-11 18:53:09
问题 Can I search via facet by prefix with results highlighting? For example I have 2 documents: name = "document1" title = "Simple query" name = "document2" title = "Simple queries" can I searching documents with prefix "quer"? And can I highlight returned results? 回答1: facet.prefix just limits the terms on which to facet to those starting with the given string prefix. This does not effect or change the search results, it simply reduces the facet values returned to those beginning with the

Grafana won't display Solr metrics

柔情痞子 提交于 2019-12-11 18:48:41
问题 I have installed Grafana and configured it to display data from my Solr servers' metrics. However, no data can be displayed. I keep getting this message from the console: msg="appending scrape report failed" err="out of bounds "Screenshot from the console How would I solve this problem and get Grafana to display the metrics from Solr? Thanks 回答1: My configuration, it works.... into prometheus.yml scrape_configs: - job_name: 'prometheus' static_configs: - targets: ['localhost:9090'] Into SOLR

Sitecore 8.2 : Solr is not working giving error

自古美人都是妖i 提交于 2019-12-11 18:48:19
问题 I am using Sitecore 8.2 update 5. Now switching from Lucene to Solr 6.6.3 using the steps mentioned in https://sitecorerockz.wordpress.com/2018/08/01/lucene-to-solr/ I created a diagnostic page to check if Solr is working or not, I got the below error (screenshot) : Exception Details: Ninject.ActivationException: Error activating ISolrOperations{Dictionary{string, Object}} No matching bindings are available, and the type is not self-bindable. Activation path: 1) Request for ISolrOperations

solrj “org.apache.solr.common.util.SimpleOrderedMap cannot be cast to java.util.Map” exception when using “/suggest” handler

浪尽此生 提交于 2019-12-11 18:42:24
问题 I get the class cast exception when trying to run the solrj program using /suggest handler. I am able to get the suggestion response from Solr Admin UI, but when the same is being tried from solrj client the above exception arises. The solr-config.xml entries are as follows : <searchComponent name="suggest" class="solr.SuggestComponent"> <lst name="suggester"> <str name="name">mySuggester</str> <str name="lookupImpl">FuzzyLookupFactory</str> <str name="dictionaryImpl"

How to index wikipedia files in .xml format into solr

心不动则不痛 提交于 2019-12-11 18:32:07
问题 I want to index xml files of Wikipedia into Solr. But I am getting an error, it is unable to index. Solr has a specific format for xml files. I changed the schema.xml and data-config.xml files to suit the tags of the wikipedia files. Still it is unable to index the files. My actual intention is to index wikipedia which is an xml file of 30 GB. How would I go about indexing all wikipedia files into Solr? 回答1: There's an example section in the DataImportHandler documentation for exactly this:

Data import in solr from multiple entity

末鹿安然 提交于 2019-12-11 18:17:32
问题 I am trying the Data Import Handler for SQLServer Database. I added the DIhandler in solrconfig.xml , created a data-config.xml according to my database schema and also added a field in the schema.xml which was different. I am connecting with SQLServer database. After I connect and I run the dataimport?command=full-import I am not getting xml tag (data) properly. in my data-config.xml* * *** <document name="Product"> <entity dataSource="ds-1" name="Item" pk="Item_ID" query="select item.Item

Solr: How to perform a batch request to an external system from a PostFilter?

微笑、不失礼 提交于 2019-12-11 18:15:38
问题 I implemented the security post filtering (using Solr 4.3.1) as proposed here (and it works fine) using a PostFilter : http://searchhub.org/2012/02/22/custom-security-filtering-in-solr/ The comment of the PostFilter interface says: This collector interface also enables better performance when an external system must be consulted, since document ids may be buffered and batched into a single request to the external system. This is exactly what I want to do. The plan how to realize this based on

Jetty 6.1 with Solr 4.4

跟風遠走 提交于 2019-12-11 17:34:06
问题 Is it possible to run Solr 4.4 with jetty 6.1 from Ubuntus package repository? I followed this example: http://www.kingstonlabs.com/blog/how-to-install-solr-36-on-ubuntu-1204/ And tried some other examples, but it seemed to be impossible to run run Solr 4.4 from Jetty's webapps directory. In the example you can read in the comments, that people ended up with 404 when try to reach http://localhost:8080/solr I tried also the configuration steps from the Apache Solr 4 Cookbook by Rafal Kuc, page

How to visualize data on bettermap in Banana Solr Dashboard?

喜你入骨 提交于 2019-12-11 17:29:30
问题 I am trying to visualize a set of indexed data through Banana and it's bettermap panel. Below is my indexed data for storing the lat long information: { "user_lang":"en", "user_screenname":"Kashyep2", "latlonggis_0_coordinate":25.25, "latlonggis_1_coordinate":86.98, "latlonggis":"25.25,86.98", "longlatgis_0_coordinate":86.98, "longlatgis_1_coordinate":25.25, "longlatgis":"86.98,25.25", "timestamp":"2019-02-09T08:09:09.280Z", "_version_":1624977964309413888} } I do not get any thing on the

How to store timezone info in rails

…衆ロ難τιáo~ 提交于 2019-12-11 17:27:13
问题 In my rails application,users can create questions and publish that, anybody from any country can response for that. We are designing database structure for that. so planning to get user timezone using some js and while answering converting that time and to store in a separate column(tz_created_at). so in created at the date will be stored in utc format, and in another column say tz_created_at the datetime will be stored as user's timezone converted time. (ie) in created_at column i have irb