Author: epbernard
Date: 2008-11-26 17:25:15 -0500 (Wed, 26 Nov 2008)
New Revision: 15623
Modified:
search/trunk/doc/reference/en/modules/query.xml
search/trunk/src/java/org/hibernate/search/Environment.java
search/trunk/src/java/org/hibernate/search/impl/SearchFactoryImpl.java
search/trunk/src/test/org/hibernate/search/test/filter/FilterTest.java
Log:
HSEARCH-312 rename property to hibernate.search.filter.cache_docidresults.size
Modified: search/trunk/doc/reference/en/modules/query.xml
===================================================================
--- search/trunk/doc/reference/en/modules/query.xml 2008-11-26 13:50:03 UTC (rev 15622)
+++ search/trunk/doc/reference/en/modules/query.xml 2008-11-26 22:25:15 UTC (rev 15623)
@@ -671,7 +671,7 @@
<classname>SoftReference</classname>s are used together with a hard
reference count (see dicussion about filter cache). The hard reference
count can be adjusted using
- <literal>hibernate.search.filter.cache_bit_results.size</literal>
+ <literal>hibernate.search.filter.cache_docidresults.size</literal>
(defaults to 5). The wrapping behaviour can be controlled using the
<literal>(a)FullTextFilterDef.cache</literal> parameter. There are three
differerent values for this parameter:</para>
Modified: search/trunk/src/java/org/hibernate/search/Environment.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/Environment.java 2008-11-26 13:50:03 UTC
(rev 15622)
+++ search/trunk/src/java/org/hibernate/search/Environment.java 2008-11-26 22:25:15 UTC
(rev 15623)
@@ -69,7 +69,7 @@
public static final String FILTER_CACHING_STRATEGY =
"hibernate.search.filter.cache_strategy";
/**
- * Property name for the hard ref count of our
<code>CachingWrapperFilter</code>.
+ * number of docidresults cached in hard referemnce.
*/
- public static final String CACHE_BIT_RESULT_SIZE =
"hibernate.search.filter.cache_bit_results.size";
+ public static final String CACHE_DOCIDRESULTS_SIZE =
"hibernate.search.filter.cache_docidresults.size";
}
Modified: search/trunk/src/java/org/hibernate/search/impl/SearchFactoryImpl.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/impl/SearchFactoryImpl.java 2008-11-26
13:50:03 UTC (rev 15622)
+++ search/trunk/src/java/org/hibernate/search/impl/SearchFactoryImpl.java 2008-11-26
22:25:15 UTC (rev 15623)
@@ -130,7 +130,7 @@
this.readerProvider = ReaderProviderFactory.createReaderProvider( cfg, this );
this.filterCachingStrategy = buildFilterCachingStrategy( cfg.getProperties() );
this.cacheBitResultsSize = ConfigurationParseHelper.getIntValue(
- cfg.getProperties(), Environment.CACHE_BIT_RESULT_SIZE,
CachingWrapperFilter.DEFAULT_SIZE
+ cfg.getProperties(), Environment.CACHE_DOCIDRESULTS_SIZE,
CachingWrapperFilter.DEFAULT_SIZE
);
this.barrier = 1; //write barrier
}
Modified: search/trunk/src/test/org/hibernate/search/test/filter/FilterTest.java
===================================================================
--- search/trunk/src/test/org/hibernate/search/test/filter/FilterTest.java 2008-11-26
13:50:03 UTC (rev 15622)
+++ search/trunk/src/test/org/hibernate/search/test/filter/FilterTest.java 2008-11-26
22:25:15 UTC (rev 15623)
@@ -185,6 +185,6 @@
protected void configure(org.hibernate.cfg.Configuration cfg) {
super.configure(cfg);
- cfg.setProperty( "hibernate.search.filter.cache_bit_results.size",
"10" );
+ cfg.setProperty( "hibernate.search.filter.cache_docidresults.size",
"10" );
}
}
Show replies by date