English 中文(简体)
通过文件延期搜索生命线文件图书馆
原标题:Searching in Liferay document library by document extension

我正在开发一个模块,用于对活线内容进行高级搜索,我被困在文件资料库查询中,要求它用文件类型检索,我希望知道这种特征的可行性,我检查生命线代码,发现文件索引员没有将文件延期索引,而是将整个档案名称索引。

Kindly help me with this issue

最佳回答

If you are using 6.0 or higher, you can change the way a document is indexed by using a hook plugin.

页: 1

<indexer-post-processor>
    <indexer-class-name>com.liferay.portal.model.DLFileEntry</indexer-class-name>
    <indexer-post-processor-impl>com.example.hook.indexer.DLFileEntryIndexerPostProcessor</indexer-post-processor-impl>
</indexer-post-processor>

在你的后处理员班中,扩大 com.liferay.portal.kernel.search.BaseIndexerPostProcessor,并采用你需要改变的方法。

In this case you would want to implement postProcessDocument to add in the extension as a indexed field and also postProcessSearchQuery or postProcessFullQuery to include it as part of the search query.

问题回答

暂无回答




相关问题
adding an index to sql server

I have a query that gets run often. its a dynmaic sql query because the sort by changes. SELECT userID, ROW_NUMBER(OVER created) as rownumber from users where divisionID = @divisionID and ...

Linq to SQL nvarchar problem

I have discovered a huge performance problem in Linq to SQL. When selecting from a table using strings, the parameters passed to sql server are always nvarchar, even when the sql table is a varchar. ...

TableView oval button for Index/counts

Can someone help me create an index/count button for a UITableView, like this one? iTunes http://img.skitch.com/20091107-nwyci84114dxg76wshqwgtauwn.preview.jpg Is there an Apple example, or other ...

Move or copy an entity to another kind

Is there a way to move an entity to another kind in appengine. Say you have a kind defines, and you want to keep a record of deleted entities of that kind. But you want to separate the storage of ...

热门标签