sunspot-solr

Configure Tesseract with solr 6.4.1

ぃ、小莉子 提交于 2020-06-28 06:30:18
问题 How to configure Tika OCR with solr 6.4.1. I indexed documents including PDF, images and MS office documents but problem was occurred Tika was not extracting text from images and also from images which are inside PDF and MS office documents. for this I researched Tika OCR is used. for this purpose i am installing tika-app-1.7.jar and Tesseract but i don't know how to configure them with my solr core. 回答1: You don't need to do anything special. Simply get the Tesseract OCR setup for your

Sunspot/Solr raketasks not loading in Rails 3 Mountable Engine

泄露秘密 提交于 2020-01-13 07:00:49
问题 I'm trying to add the sunspot_rails gem to my Rails Mountable Engine, so I can use Solr to do full text searches. Like it states in the README file I've added this to my Gemfile: gem "sunspot_rails" gem "sunspot_solr" Then I run rails g sunspot_rails:install which creates sunspot.yml in the config folder of my Rails Engine. To start sunspot I need to run: bundle exec rake sunspot:solr:start But that doesn't work, and gives me the following error message: rake aborted! Don't know how to build

Sunspot — Boost records where matches occur early in the text

流过昼夜 提交于 2020-01-03 16:44:56
问题 For example, let's say there is a record in my DB that has the text "Hormel Corporation" and my search term is something like "Hormel Corned Beef 16 Ounces" . As my current configuration stands, the top results will be other records, even though "Hormel Corporation" is the one I'm looking for. I think the solution to my problem would be to give priority to records where a match comes earliest in the search term. I've read all the docs, but I have had trouble figuring out how this might work.

How to set Apache solr admin password

霸气de小男生 提交于 2019-12-28 05:14:35
问题 I an not very familiar with solr. I have installed solr successfully. It is using jetty webserver. My solr version is 4.10.3. It admin page is not protected by password. Anyone can access it. I want to apply a paaword on solr admin. How I will do it? 回答1: For version below 5 If you are using solr-webapp then you need to modify web.xml file and add these lines: <security-constraint> <web-resource-collection> <web-resource-name>Solr Lockdown</web-resource-name> <url-pattern>/</url-pattern> <

Indexing using two tables in sunspot solr + rails 4

亡梦爱人 提交于 2019-12-25 07:54:43
问题 I'm using sunspot-solr in ROR and I need help in creating a searchable block using two tables.(join of two tables) The query I want to be executed when the indexes are formed is : SELECT a.id,a.title FROM table_one a,table_two b WHERE a.status=1 AND a.id=b.id AND b.status=1 I want the "title" field to be searchable(text), only if the id exists in both tables and both have status 1.And I want them to be stored fields(no db hits). class TableOne has_many :table_twos searchable do text :title,

Error using progress bar: Max must be a positive integer

情到浓时终转凉″ 提交于 2019-12-24 00:53:30
问题 Whenever I reindex a with solr, I get the following error $ RAILS_ENV=development rake sunspot:solr:reindex Error using progress bar: Max must be a positive integer How do I fix this? 回答1: The possible reason is, your database to reinstall has no data. The progress bar is to show "how much has reindexed / how much records in DB". So if you have no data, the progress bar can't be initialized. Sunspot is expected to show a better error message 来源: https://stackoverflow.com/questions/26435813

Solr: Can't search for numbers mixed with characters

亡梦爱人 提交于 2019-12-23 11:59:34
问题 I have some items in my index (Solr. 4.4), which contain names like Foobar 135g , where the 135g refers to some weights. Searching for foobar or foobar 135 does work, but when I try to search for the exact phrase foobar 135g , nothing is found. I analysed the query inside the solr admin panel "Analysis". Here everything looks good. The fields are indexed correctly, the query is splitted correctly, and I get hits (indicated by this purple background on the tokens). But there has to be an issue

What is the difference between Solr Replication and Solr Cloud?

佐手、 提交于 2019-12-21 05:19:08
问题 I'm supporting on rails project, which contain rails app and additional instance with Solr. My environment: rails 3.2.1, ruby 2.1.2, sunspot 2.1.0, Solr 4.1.6. Problem: Clould provider is not stable. I cannot use other cloud provider - it is customer's demand. Oftentimes search server goes on maintenance and web application stop working on production. So, I think about how to make 2 identical search servers instead of one, to make system more stable: if one server will be down, other will

Solr with Rails - rake sunspot:reindex is not working

谁都会走 提交于 2019-12-18 05:44:34
问题 I am stuck into a strange issue where I am looking for your inputs. My problem is: After deploying my application on Production using Capistrano, when I am doing solr re-indexing, it is giving me below error: $ bundle exec rake sunspot:reindex --trace ** Invoke sunspot:reindex (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute sunspot:reindex Skipping progress bar: for progress reporting, add gem 'progress_bar' to your Gemfile rake aborted! RSolr::Error::Http -

Solr with Rails - rake sunspot:reindex is not working

丶灬走出姿态 提交于 2019-12-18 05:44:17
问题 I am stuck into a strange issue where I am looking for your inputs. My problem is: After deploying my application on Production using Capistrano, when I am doing solr re-indexing, it is giving me below error: $ bundle exec rake sunspot:reindex --trace ** Invoke sunspot:reindex (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute sunspot:reindex Skipping progress bar: for progress reporting, add gem 'progress_bar' to your Gemfile rake aborted! RSolr::Error::Http -