掲示板
get documents with specific tags using query
6年前 に sony lion によって更新されました。
get documents with specific tags using query
New Member 投稿: 19 参加年月日: 15/03/10 最新の投稿
I have this
qry.append("{facets: [");
qry.append("{" + "static: true," + "order: 'OrderHitsDesc', " + "data: {" + "frequencyThreshold: 0, "
+ "values:['something']" + "}, "
+ "className: 'com.liferay.portal.kernel.search.facet.MultiValueFacet', "
+ "label: 'tag', " + "fieldName: 'assetTagNames', " + "},");
qry.append("]}");
What should be in label ?
Means to say i need files which are taged with somethingname
any idea ?
console
{facets: [{static: true,order: 'OrderHitsDesc', data: {frequencyThreshold: 0, values:['something']}, className: 'com.liferay.portal.kernel.search.facet.MultiValueFacet', label: 'tag', fieldName: 'assetTagNames', },]}
qry.append("{facets: [");
qry.append("{" + "static: true," + "order: 'OrderHitsDesc', " + "data: {" + "frequencyThreshold: 0, "
+ "values:['something']" + "}, "
+ "className: 'com.liferay.portal.kernel.search.facet.MultiValueFacet', "
+ "label: 'tag', " + "fieldName: 'assetTagNames', " + "},");
qry.append("]}");
What should be in label ?
Means to say i need files which are taged with somethingname
any idea ?
console
{facets: [{static: true,order: 'OrderHitsDesc', data: {frequencyThreshold: 0, values:['something']}, className: 'com.liferay.portal.kernel.search.facet.MultiValueFacet', label: 'tag', fieldName: 'assetTagNames', },]}
6年前 に Andrew Jardine によって更新されました。
RE: get documents with specific tags using query
Liferay Legend 投稿: 2416 参加年月日: 10/12/22 最新の投稿
Hi Sony,
Which version of Liferay are you using?
Which version of Liferay are you using?
6年前 に sony lion によって更新されました。
RE: get documents with specific tags using query
New Member 投稿: 19 参加年月日: 15/03/10 最新の投稿
Hi Andrew
This is liferay 7
I think facet configuration (json format) has been removed from liferay 7
if it is then any other idea ??
This is liferay 7
I think facet configuration (json format) has been removed from liferay 7
if it is then any other idea ??
6年前 に Andrew Jardine によって更新されました。
RE: get documents with specific tags using query
Liferay Legend 投稿: 2416 参加年月日: 10/12/22 最新の投稿
This is on my list to try, but I haven't gotten that far down my list yet. I can share with you some code that I used in the 6.2 version -- it doesn't use a facet configuration but rather the Search API to build the query.
But first -- what is the context of your work? Are you trying to configure a search portlet (facet)? or are you just trying to execute a query against the search index in your java code?
But first -- what is the context of your work? Are you trying to configure a search portlet (facet)? or are you just trying to execute a query against the search index in your java code?
6年前 に Jorge Díaz によって更新されました。
RE: get documents with specific tags using query (回答)
Liferay Master 投稿: 753 参加年月日: 14/01/09 最新の投稿
JSON configuration was removed in Liferay 7, see LPS-54471.
Now, you have to configure using SearchFacet modules for each JSON fragment, more info see my comment in: https://web.liferay.com/community/forums/-/message_boards/message/90745688
Now, you have to configure using SearchFacet modules for each JSON fragment, more info see my comment in: https://web.liferay.com/community/forums/-/message_boards/message/90745688