solr

HttpException: Solr HTTP error: HTTP request failed, Failed to connect to 127.0.0.1 port 8983: Connection refused

泪湿孤枕 提交于 2020-01-03 04:36:19
问题 I try to configure NelmioSolariumBundle in symfony2 but i have this error: HttpException: Solr HTTP error: HTTP request failed, Failed to connect to 127.0.0.1 port 8983: Connection refused I added this section in the file config.yml : nelmio_solarium: endpoints: default: host: %solr_host% port: %solr_port% path: %solr_path% core: %solr_core% timeout: %solr_timeout% clients: default: endpoints: [default] and this in parametre.yml: solr_host: 127.0.0.1 solr_port: 8983 solr_path: /solr/ solr

Need help to decide between the type of spellchecker to use in solr?

早过忘川 提交于 2020-01-03 03:21:26
问题 I have a list of cities on mysql db which is hooked onto a UI for autocompletion purposes. I am currently using solr-5.3.0. Data import is happening through scheduled delta imports. I have the following questions: I want to implement spell checker to this feature. I tried using: DirectSolrSpellChecker IndexBasedSpellChecker FileBasedSpellChecker Out of these 3 only FileBasedSpellChecker is able to give suggestions that solely exists on db. For eg, while searching cologne I've got results like

Need help to decide between the type of spellchecker to use in solr?

☆樱花仙子☆ 提交于 2020-01-03 03:21:06
问题 I have a list of cities on mysql db which is hooked onto a UI for autocompletion purposes. I am currently using solr-5.3.0. Data import is happening through scheduled delta imports. I have the following questions: I want to implement spell checker to this feature. I tried using: DirectSolrSpellChecker IndexBasedSpellChecker FileBasedSpellChecker Out of these 3 only FileBasedSpellChecker is able to give suggestions that solely exists on db. For eg, while searching cologne I've got results like

Solr * vs *:* query performance

坚强是说给别人听的谎言 提交于 2020-01-03 03:16:18
问题 We're running Solr 3.4 and have a relatively small index of 90,000 documents or so. These documents are split over several logical sources, and so each search will have an applied filter query for a particular source, e.g: ?q=<query>&fq=source:<source> where source is a classic string field. We're using edismax and have a default search field text . We are currently seeing q=* taking on average 20 times longer to run than q=*:* . The difference is quite noticeable, with *:* taking 100ms and *

CPU usage when searching using solr

假装没事ソ 提交于 2020-01-03 02:50:12
问题 We have a solr cloud setup of 4 shards (one shard per physical machine) having ~100 million documents. Zookeeper is on one of those 4 machines. We encounter complex queries having wild cards and proximity searches together and it sometimes takes more than 15 secs to get top 100 documents. Query traffic is very very low at the moment (2-3 queries every minute). 4 Servers hosting cloud have following specs: (2 servers -> 64 GB RAM, 24 CPU cores, 2.4 GHz) + (2 servers -> 48 GB RAM, 24 CPU cores,

Solr Search Field Best Practices

一笑奈何 提交于 2020-01-03 02:37:36
问题 I'm using solr for an enterprise application. So far it works well, as I am using a ngram field to search against. It works correctly for partial queries (match against indexed ngrams). But the problem I have is, how to enforce exact query matches?. For an example the query "Test 1" should match exactly the same text as it is when the user enter it with double quotation marks. Currently Since I have used some tokenizers and filters, the double quotation marks get filtered out, there's no

solr query in broadleaf

为君一笑 提交于 2020-01-02 23:00:17
问题 I am new to Solr and Broadleaf. I am working in Broadleaf, in that they using the solr search. that's perfectly fine and working condition. Product table has category field and broadleaf searches by category right now As per requirement i extend the Product table and make new table with company id, so in my ExtendedProduct table there are two fields companyId and productId(fk with product table) Now i want to get product list by companyId also. our schema.xml file looks below <?xml version="1

Unable to start SOLR server (Ruby on Rails)

非 Y 不嫁゛ 提交于 2020-01-02 19:15:54
问题 I'm using sunspot_rails and sunspot gems in my Rails3 application and following the steps to installing sunspot on https://github.com/outoftime/sunspot, I cannot get my sunspot server to run. When I enter my directory, run bundler and then run rake sunspot:solr:start I get the following error Emil@Emil-PC /cygdrive/c/work/pilarhq $ rake sunspot:solr:start (in /cygdrive/c/work/pilarhq) DEPRECATION WARNING: You are using the old router DSL which will be removed in R ails 3.1. Please check how

termfreq for a phrase

笑着哭i 提交于 2020-01-02 18:02:22
问题 I'm using SOLR 4.x termfreq feature in the following example to find "autozero amplifiers" in a field CONTENTS. http://localhost:8080/solr/select/?fl=contents,documentPageId,termfreq%28contents,%27autozero%20amplifiers%27%29&defType=func&q=termfreq%28contents,%27autozero%20amplifiers%27%29&fq=documentId%3A49667 I am getting zero frequency for the following paragraph which contains the phrase "autozero amplifiers". What do I have to do either to solrconfig.xml or schema.xml in order to use

Using JanusGraph with Solr

余生长醉 提交于 2020-01-02 16:14:31
问题 Setting up JanusGraph i noticed the following in the console: 09:04:12,175 INFO ReflectiveConfigOptionLoader:173 - Loaded and initialized config classes: 10 OK out of 12 attempts in PT0.023S 09:04:12,230 INFO Reflections:224 - Reflections took 28 ms to scan 1 urls, producing 2 keys and 2 values 09:04:12,291 WARN GraphDatabaseConfiguration:1445 - Local setting index.search.index-name=entity (Type: GLOBAL_OFFLINE) is overridden by globally managed value (janusgraph). Use the ManagementSystem