Skip to content

Instantly share code, notes, and snippets.

💭
🚴

Tibor Lipusz lipusz

💭
🚴
Block or report user

Report or block lipusz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lipusz
lipusz / search-bar-ES-6.x-query-with-Result-Rankings.json
Last active Oct 4, 2019
Liferay Portal & DXP 7.2 - Search Bar widget search queries for Elasticsearch
View search-bar-ES-6.x-query-with-Result-Rankings.json
// Keyword: dxp
// Result Rankings:
// - 2 Web Content articles pinned & reorderd
// - 1 Web Content article hidden
{
"from":0,
"size":20,
"query":{
"bool":{
@lipusz
lipusz / build.gradle
Last active Mar 13, 2019
Customize liferay-portal's 'modules/build.gradle' to append custom suffix to the generated Eclipse project names in the .project file
View build.gradle
import com.liferay.gradle.util.FileUtil
import com.liferay.gradle.util.GradleUtil
import com.liferay.gradle.util.copy.StripPathSegmentsAction
import java.util.concurrent.ConcurrentSkipListSet
import org.apache.tools.ant.filters.ReplaceTokens
import org.gradle.plugins.ide.api.XmlFileContentMerger
import org.gradle.plugins.ide.eclipse.model.Classpath
@lipusz
lipusz / .classpath
Last active May 6, 2016
Sample (Eclipse-based) project to play with Lucene. Index, search.
View .classpath
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/lucene-analyzers-common-4.3.1.jar"/>
<classpathentry kind="lib" path="lib/lucene-core-4.3.1.jar" sourcepath="/lucene-solr"/>
<classpathentry kind="lib" path="lib/lucene-queryparser-4.3.1.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
@lipusz
lipusz / portal-test-ext.properties
Created Sep 17, 2015
portal-test-ext.properties for Liferay 7.0
View portal-test-ext.properties
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal-test?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=yourUser
jdbc.default.password=yourPassword
#MASTER_HOME is set as an env variable in ~.bashrc
liferay.home=${env.MASTER_HOME}
module.framework.base.dir=${liferay.home}/osgi
@lipusz
lipusz / .classpath
Last active Aug 29, 2015
Test Lucene deleteAll() v3.5.0
View .classpath
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/commons-io.jar"/>
<classpathentry kind="lib" path="lib/lucene-core-3.5.0.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
View UpdateLayoutAction.java.diff
diff --git a/portal-impl/src/com/liferay/portlet/layoutsadmin/action/UpdateLayoutAction.java b/portal-impl/src/com/liferay/portlet/layoutsadmin/action/UpdateLayoutAction.java
index 159fe2c..fec898f 100644
@@ -29,6 +29,7 @@ import com.liferay.portal.model.Layout;
import com.liferay.portal.model.LayoutConstants;
import com.liferay.portal.model.LayoutPrototype;
import com.liferay.portal.security.permission.ActionKeys;
+import com.liferay.portal.service.LayoutLocalServiceUtil;
import com.liferay.portal.service.LayoutPrototypeServiceUtil;
import com.liferay.portal.service.LayoutServiceUtil;
import com.liferay.portal.service.ServiceContext;
@lipusz
lipusz / .classpath
Created Jun 19, 2013
This is a sample Liferay portlet to demonstrate ice:dataPaginator in action. It was developed under liferay-plugins-sdk-5.2.6.
View .classpath
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**/.svn/**|.svn/" kind="src" path="docroot/WEB-INF/src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/portal-5.2.6"/>
<classpathentry kind="lib" path="docroot/WEB-INF/lib/commons-beanutils-1.8.0.jar"/>
<classpathentry kind="lib" path="docroot/WEB-INF/lib/commons-collections-3.2.jar"/>
<classpathentry kind="lib" path="docroot/WEB-INF/lib/commons-digester-1.8.jar"/>
<classpathentry kind="lib" path="docroot/WEB-INF/lib/icefaces-ee-3.2.0-ga.jar"/>
<classpathentry kind="lib" path="docroot/WEB-INF/lib/icefaces-ee-ace-3.2.0-ga.jar"/>
You can’t perform that action at this time.