我正在开发一个模块,用于对活线内容进行高级搜索,我被困在文件资料库查询中,要求它用文件类型检索,我希望知道这种特征的可行性,我检查生命线代码,发现文件索引员没有将文件延期索引,而是将整个档案名称索引。
Kindly help me with this issue
我正在开发一个模块,用于对活线内容进行高级搜索,我被困在文件资料库查询中,要求它用文件类型检索,我希望知道这种特征的可行性,我检查生命线代码,发现文件索引员没有将文件延期索引,而是将整个档案名称索引。
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.
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 ...
I m working on a small project in QT (well, pyQT4 actually, but it shouldn t matter too much) and I ve run into the following problem. I have a QTableView with several rows and columns. I have set the ...
Edit: This may be a 5.0-specific bug. (I m on 5.0.83). Removing the innodb_log_file_size setting gets rid of the problem. Which makes complete sense. Not. Googling about finds a handful of ...
The method or operation is not permitted. I assume this is a permission s issue, but I can t figure out where I would change it. It is strange because I can rename an index with no issue. EDIT: ...
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. ...
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 ...
I want to determine when the index (transparent alphabet) along the side of a UITableView is tapped. To be more specific, I have a sectioned UITableView that has an index, and said index does the ...
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 ...