Sites using this plugin

puzzle

Solr

This plugin implements a Noosfero Search Engine using Solr as its backbone.

Configuration

Copy plugins/solr/config/solr.yml.dist to plugins/solr/config/solr.yml. You will probably not need to customize this configuration, but have a look at it.

Server control

You may operate it manually using rake solr:start and rake solr:stop

Associated data

Solr allow you to define fields with the associated data to be indexed and searched. This allow, for example, to search for articles using tags or categories. Also done with acts_as_solr.

Boosts

Boosts make your search smarter and sensitive to data relevant to users.

Fields based

Done when indexing/searching is defined for a model using acts_as_solr, see plugins/solr/lib/ext/article.rb.

Content based

There is a nice example of that on plugins/solr/lib/ext/product.rb, on the hash SolrPlugin::Boosts.

Custom ordering

The SolrPlugin customize ordering on views, please see plugins/solr/lib/solr_plugin/search_helper.rb.

Solr's Schema

The Solr schema is defined at plugins/solr/vendor/plugins/acts_as_solr_reloaded/solr/solr/conf/schema.xml. There you may configure what filters are executed on index and query processes. For example, you can use language specific stemmers, like this:
<filter class="solr.ASCIIFoldingFilterFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>

<filter class="solr.StopFilterFactory" words="stopwords.pt.txt" />

<!-- stemming -->
<filter class="solr.KeywordMarkerFilterFactory" protected="protwords.pt.txt" />
<filter class="solr.PortugueseStemFilterFactory" />
<filter class="solr.PorterStemFilterFactory" />

Now run rake solr:download to download Solr's java binaries.


# Status
%DBQUERY{ "form = 'ActionItemForm' AND Plugin =~ 'SolrPlugin'" format="| $percntCALC{$SUBSTITUTE($topic,ActionItem,#)}$percnt | $formfield(Status) | $formfield(Title) | $formfield(ScheduledFor) | $formfield(Feature) |" }%

PluginForm edit

Name Solr
Name l10n pt:"Solr"
Small Description A search engine for Noosfero that uses Solr as its backbone search.
Small Description l10n pt:"Um motor de busca para o Noosfero que usa o Solr como base de busca."
Features FullTextSearch, GeoLocation, Infrastructure
Status Usable
Source https://gitlab.com/noosfero/noosfero/tree/master/plugins/solr
Topic revision: r5 - 01 Jun 2014, BraulioBhavamitraBO

irc Talk with Devs Now!

%IF{"$'WIKINAME'!='WikiGuest'" then="

♥ I Care

%DBQUERY{"(topic='^ActionItem[0-9]+') AND whocares=~'WikiGuest' AND Status!='Done' AND Status!='Rejected'" format=" $formfield(Title)" separator="$n---$n" }%
Filter ♥ AIs
"}%

 
Translations: English
Search on Docs:
   
ActionItem Search:

Copyright © 2007-2018 by the Noosfero contributors
Colivre - Cooperativa de Tecnologias Livres