Gallery: 模块:搜索(search):修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
 
第1行: 第1行:
=Search Module=
=搜索(Search)模块=
Add a search feature to your Gallery.
向你的Gallery添加可进行搜索的特点。


==Description==
==描述==
Makes block available to themes.  Block links to advanced search, summary search results and show-all results.  Also link to display results in a slideshow if that module is active.
使得区块对外观主题可用。区块链接至高级搜索,摘要搜索结果以及显示所有结果。如果模块处于激活状态的话,同样也链接以在一个幻灯片中显示结果。


==Features==
==特点==
* Search your Gallery
* 搜索Gallery。
* Each module can expose itself to the search module. You can search comments and other modules too.
* 每个模块能够将自身暴露给搜索模块。你可以搜索评论以及其他的模块。
* Add a quick search block to your sidebar
* 在你的边栏中添加一个快速搜索区块。
* Define what to search for in the advanced search page
* 定义在高级搜索页面中可搜索的内容。
* View a slideshow of your search results
* 查看搜索结果的幻灯片形式。
* Missing features: No boolean search (e.g. holidays AND summer), no full-text search, no search by date
* 缺失的特点:无boolean搜索(如假期AND暑期),无完整文本搜索,无按日期的搜索。


==Usage==
==用法==
* Read the [[Gallery:Installing_Additional_Components#Installing_Modules_and_Themes|plugin installation instructions]] to enable the search module.
* 参阅[[Gallery:Installing_Additional_Components#模块和外观主题的安装|插件安装的相关指导]]来启用搜索模块。
* '''Add the search block''' to your sidebar in ''site admin'' -> ''themes'' -> ''matrix'' (or for any other active/used theme)
* ''站点管理(site admin)'' -> ''外观主题(themes)'' -> ''matrix''(或其他任何处于激活状态或已使用的外观主题)中向你的边栏'''添加搜索区块'''
* Now you and the visitors of your site see a compac '''search block''' in your sidebar in all album / photo pages.
* 现在你和你站点的访问者就可以在所有相册或相片页面的边栏中看到一个compac '''搜索区块'''了。


==Requested Features==
==被请求的特点==
Please add your feature request on sf.net and add a link here such that we have an overview of the requets specific to this module.
请在sf.net上添加你的特点请求并在此给出相应的链接,这样我们就能够针对该模块的特点请求进行浏览。


* With regard to the Custom Field Module, it's great that one can limit the entry field by creating a dropdown. Now I'd like to add this to the advanced search function. So one can easily filter out all files with these specific atributes. Would this be possible? I dont's know if I should add this request here or at the Custom Field or maybe you guys could work together on this? See also:
* 提及自定义字段(Custom Field)模块,用户可以通过创建下拉列表来限制入口字段是很不错的。现在我希望可以将此添加到高级搜索功能中去。这样用户就能轻松地过滤出所有具有特定属性的文件了。这可能实现吗?我不确定是否该将此请求添加在这里还是在有关自定义字段的页面上,或许你们能够合力解决此问题?另见:
** http://sourceforge.net/tracker/index.php?func=detail&aid=1522736&group_id=7130&atid=357130
** http://sourceforge.net/tracker/index.php?func=detail&aid=1522736&group_id=7130&atid=357130


* I would like to have the ability to set default search fields (e.g custom fields only and even better, decide which custom fields although that will be a problem because they all reside in one database field)
* 我希望能够设定默认的搜索字段(例如仅自定义字段,或者更好的是可以决定哪些自定义字段,尽管会是个问题—因为它们都位于一个数据库字段之中)。


* We would need to have the Boolean Search implemented in this module, thank you !
* 我们希望Boolean Search能够在此模块中实现,谢谢!
** http://sourceforge.net/tracker/index.php?func=detail&aid=1221234&group_id=7130&atid=357130
** http://sourceforge.net/tracker/index.php?func=detail&aid=1221234&group_id=7130&atid=357130


* It is essential on other DB back-ends for the searches to be case-insensitive. Not everybody runs on MySQL
* 其他数据库的back-end上的搜索为case-insensitive也是必要的。因为并非所有人都是在MySQL上运行的。
** http://sourceforge.net/tracker/index.php?func=detail&aid=1923710&group_id=7130&atid=357130
** http://sourceforge.net/tracker/index.php?func=detail&aid=1923710&group_id=7130&atid=357130


==Unofficial update==
==非官方更新==
There's an unofficial update extending the search module with 'Search per album' and '[https://sourceforge.net/tracker/index.php?func=detail&aid=1243397&group_id=7130&atid=357130 Enhancement to search for each word]', see http://www.saulmade.nl/g2modules/
这里有一个非官方更新,它扩展了搜索模块,即'单位相册的搜索(Search per album)''[https://sourceforge.net/tracker/index.php?func=detail&aid=1243397&group_id=7130&atid=357130 单字搜索强化]',参见http://www.saulmade.nl/g2modules/  


==Bugs==
==Bug==


[[category:Gallery 2:Modules]]
[[category:Gallery 2:Modules]]

2008年8月26日 (二) 17:48的最新版本

搜索(Search)模块[编辑 | 编辑源代码]

向你的Gallery添加可进行搜索的特点。

描述[编辑 | 编辑源代码]

使得区块对外观主题可用。区块链接至高级搜索,摘要搜索结果以及显示所有结果。如果模块处于激活状态的话,同样也链接以在一个幻灯片中显示结果。

特点[编辑 | 编辑源代码]

  • 搜索Gallery。
  • 每个模块能够将自身暴露给搜索模块。你可以搜索评论以及其他的模块。
  • 在你的边栏中添加一个快速搜索区块。
  • 定义在高级搜索页面中可搜索的内容。
  • 查看搜索结果的幻灯片形式。
  • 缺失的特点:无boolean搜索(如假期AND暑期),无完整文本搜索,无按日期的搜索。

用法[编辑 | 编辑源代码]

  • 参阅插件安装的相关指导来启用搜索模块。
  • 站点管理(site admin) -> 外观主题(themes) -> matrix(或其他任何处于激活状态或已使用的外观主题)中向你的边栏添加搜索区块
  • 现在你和你站点的访问者就可以在所有相册或相片页面的边栏中看到一个compac 搜索区块了。

被请求的特点[编辑 | 编辑源代码]

请在sf.net上添加你的特点请求并在此给出相应的链接,这样我们就能够针对该模块的特点请求进行浏览。

  • 提及自定义字段(Custom Field)模块,用户可以通过创建下拉列表来限制入口字段是很不错的。现在我希望可以将此添加到高级搜索功能中去。这样用户就能轻松地过滤出所有具有特定属性的文件了。这可能实现吗?我不确定是否该将此请求添加在这里还是在有关自定义字段的页面上,或许你们能够合力解决此问题?另见:
  • 我希望能够设定默认的搜索字段(例如仅自定义字段,或者更好的是可以决定哪些自定义字段,尽管会是个问题—因为它们都位于一个数据库字段之中)。

非官方更新[编辑 | 编辑源代码]

这里有一个非官方更新,它扩展了搜索模块,即'单位相册的搜索(Search per album)'和'单字搜索强化',参见http://www.saulmade.nl/g2modules/

Bug[编辑 | 编辑源代码]