From: <die...@us...> - 2010-08-25 13:15:20
|
Revision: 2900 http://openutils.svn.sourceforge.net/openutils/?rev=2900&view=rev Author: diego_schivo Date: 2010-08-25 13:15:14 +0000 (Wed, 25 Aug 2010) Log Message: ----------- changed index-rule on nt:hierarchyNode Modified Paths: -------------- trunk/openutils-mgnlcriteria/src/test/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/CriteriaTest.java trunk/openutils-mgnlcriteria/src/test/resources/crit-repository/indexing_configuration.xml Modified: trunk/openutils-mgnlcriteria/src/test/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/CriteriaTest.java =================================================================== --- trunk/openutils-mgnlcriteria/src/test/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/CriteriaTest.java 2010-08-25 13:03:54 UTC (rev 2899) +++ trunk/openutils-mgnlcriteria/src/test/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/CriteriaTest.java 2010-08-25 13:15:14 UTC (rev 2900) @@ -111,7 +111,8 @@ Assert.assertEquals(node.getTitle(), "Pets"); Criteria criteria = JCRCriteriaFactory.createCriteria().setWorkspace(ContentRepository.WEBSITE).setBasePath( - "/jcr:root/*").add(Restrictions.eq("@jcr:primaryType", ItemType.CONTENT.getSystemName())); + "/jcr:root/*").add(Restrictions.eq("@jcr:primaryType", ItemType.CONTENT.getSystemName())).add( + Restrictions.eq("@title", "Pets")); AdvancedResult result = criteria.execute(); ResultIterator<AdvancedResultItem> iterator = result.getItems(); Assert.assertTrue(iterator.hasNext()); Modified: trunk/openutils-mgnlcriteria/src/test/resources/crit-repository/indexing_configuration.xml =================================================================== --- trunk/openutils-mgnlcriteria/src/test/resources/crit-repository/indexing_configuration.xml 2010-08-25 13:03:54 UTC (rev 2899) +++ trunk/openutils-mgnlcriteria/src/test/resources/crit-repository/indexing_configuration.xml 2010-08-25 13:15:14 UTC (rev 2900) @@ -8,7 +8,10 @@ </analyzer> </analyzers> <index-rule nodeType="nt:hierarchyNode"> - <property nodeScopeIndex="false" useInExcerpt="false">excludedproperty</property> + <property boost="10" useInExcerpt="false">title</property> + <property boost="1.0" useInExcerpt="true">text</property> + <!-- exclude jcr:* and mgnl:* properties --> + <property isRegexp="true" nodeScopeIndex="false" useInExcerpt="false">.*:.*</property> </index-rule> <index-rule nodeType="mgnl:content"> <property boost="10" useInExcerpt="false">title</property> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |