Introduction
============
Package collective.gsa integrates Plone site with a Google Search Appliance (GSA). It
provides an indexing processor with collective.indexing as well as a search capabilities.
collective.gsa runs on Plone 4.x.
Installation
============
Add collective.gsa to your buildout.cfg to both eggs and create a part for the
separate feeder startup script::
[buildout]
parts = gsafeeder
eggs = collective.gsa
[gsafeeder]
recipe = zc.recipe.egg:scripts
eggs = ${instance:eggs}
arguments = 'gsa host:port', 'source', 'path_to_a_dir_with_generated_feeds', 'path_to_a_log_dir', 'pidfile'
After running
buildout and restarting the server, you can install it via Quick Installer either ZMI or
Plone Add/Remove Products. After installing the package the GSA settings and GSA maintenance configlets
will appear in the Plone Control Panel. Follow the fields' description to set it up.
To start or stop the processing daemon run::
./bin/gsafeeder [start|stop|restart]
Global reindex
--------------
In the GSA maintenance configlet there is a tool to globally reindex the whole site. If the site is a large one,
memory related issues may appear. Thus the reindex allows you to run it piece by piece by batching the objects.
If it is more suitable to run rather more small batches then there is an example script global_reindex.py in the example folder which
runs the batch reindexes repeatedly.
Indexing
========
A indexing subscriber is created and set upon IObjectEditedEvent, IObjectInitializedEvent, IActionSucceededEvent, IObjectRemovedEvent and create relevant xml feeds which are saved on a filesystem where the gsafeeder daemon should process them.
The package contains content providers for objects implementing IATDocument, IATFile and IATContentType.
* For document CTs (Page, News Items etc.) the default page is rendered.
* For file CTs the primary file field is sent.
* For other archetype based CTs the title and description.
To create support for other types just create your own content provider implementing interface IContentProvider
and register it via zcml. For details look at the content_provider module and gsa's configure.zcml
The package supports dual indexing if you have two sites - e.g. secure for edit access and public for anonymous access.
The object's identifier in GSA is its url which is obtained using object's absolute_url method.
Thus all the indexing has to be done from the url you want it to be indexed for ( e.i. not from localhost).
In the GSA's control panel you can set a dual base url for anonymous site. Then the url is constructed using the dual url plus
absolute_url_path method.
When reindexing object, the feed id added to a persistent queue and is removed when successfully sent to GSA hence if GSA is
unreachable the feed will be send when another object is reindexed.
Fact that GSA received the feed does not mean that it is going to be indexed ( e.i. the url is not in the Matched URLs settings )
If your objects are not indexed, please, check the GSA's Crawl and Index settings.
Searching
=========
This package replaces the search template and livesearch script to use GSA as a search engine. This is done by adding a gsasearch=on
into the search request to avoid using GSA search for internal searches ( such as navigation, folder contents etc. )
The plone's advanced search is at the default search_form template and does not use GSA at all, because GSA does not handle
indexes as zope's ZCatalog does. However you can use the GSA's advanced search which url you can set at the local GSA control panel.
Uninstall
=========
To remove collective.gsa just uninstall it via QuickInstaller and remove it from buildout.
Current Status
==============
The basic implementation is nearly finished and we aim to write the neccessary tests for it.
Credit
======
This code was inspired by collective.solr package and it was kindly sponsored by
University of Leicester.
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | collective.gsa-2.0rc7.zip
共82个文件
py:40个
txt:10个
xml:6个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 65 浏览量
2022-02-12
19:20:20
上传
评论
收藏 80KB ZIP 举报
温馨提示
资源来自pypi官网。 资源全名:collective.gsa-2.0rc7.zip
资源推荐
资源详情
资源评论
收起资源包目录
collective.gsa-2.0rc7.zip (82个子文件)
collective.gsa-2.0rc7
setup.cfg 59B
collective.gsa.egg-info
dependency_links.txt 1B
not-zip-safe 1B
PKG-INFO 8KB
SOURCES.txt 3KB
top_level.txt 11B
namespace_packages.txt 11B
entry_points.txt 102B
requires.txt 42B
docs
feed.xml 819B
HISTORY.txt 3KB
PKG-INFO 8KB
collective
gsa
subscribers.zcml 1KB
monkey.py 1KB
interfaces.py 5KB
skins
collective.gsa
selectViewTemplate.cpy 503B
queryCatalog.py 3KB
search.pt.metadata 31B
saveDefaultPage.cpy 939B
logged_in.cpy.metadata 213B
search.pt 11KB
logged_in.cpy 1KB
saveDefaultPage.cpy.metadata 195B
selectViewTemplate.cpy.metadata 134B
livesearch_reply.py 6KB
gsa.py 8KB
config.py 49B
content_provider.py 2KB
exceptions.py 195B
configure.zcml 2KB
tests
base.py 1KB
utils.py 4KB
test_integration.py 4KB
__init__.py 0B
data
doc.txt 3KB
request.txt 322B
file.pdf 9KB
flare.py 3KB
search.py 3KB
overrides.zcml 790B
local.py 436B
Extensions
__init__.py 0B
install.py 1KB
subscribers.py 3KB
utils.py 4KB
adapters
configure.zcml 213B
__init__.py 0B
indexer.py 8KB
parser.py 3KB
__init__.py 265B
dispatcher.py 3KB
example
global_reindex.py 3KB
profiles.zcml 457B
icon.py 640B
locales
da
LC_MESSAGES
collective.gsa.po 8KB
collective.gsa.pot 5KB
gsafeeder.py 3KB
browser
maintenance.pt 4KB
expired_viewlet.pt 223B
reindex.py 337B
gsa_login.py 405B
configure.zcml 2KB
content_view.py 2KB
search.py 151B
maintenance.py 3KB
content_view.pt 2KB
settings.py 459B
expired_viewlet.py 479B
searchbox.py 957B
searchbox.pt 2KB
__init__.py 0B
images
icon.png 903B
advanced_search_url.py 382B
manager.py 2KB
profiles
default
registry.xml 110B
controlpanel.xml 701B
actionicons.xml 550B
metadata.xml 107B
skins.xml 280B
__init__.py 244B
README.txt 4KB
setup.py 1KB
共 82 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 12w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功