[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-200) Expose IndexWriter setting MAX_FIELD_LENGTH via IndexWriterSetting

Hardy Ferentschik (JIRA) noreply at atlassian.com
Thu May 22 06:17:33 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_30241 ] 

Hardy Ferentschik commented on HSEARCH-200:
-------------------------------------------

I think per DirectoryProvider is fine. 

The question I ask myself is how this approach with two property sets - batch vs transaction. For the initial properties we exposed - max_merge_docs and merge_factor it made sense to have this separation, since we wanted to benefit from different values for indexing vs searching. max_field_length seems different. The differentiation between batch vs transaction does not matter here, right? Do we stick with it just for consistency?

Would it maybe not be better to do something like this:

hibernate.search.[default|<indexname>].max_field_length,
hibernate.search.[default|<indexname>].[batch|transaction]?.merge_factor,
hibernate.search.[default|<indexname>].[batch|transaction]?.max_merge_docs,
hibernate.search.[default|<indexname>].[batch|transaction]?.max_buffered_docs

Meaning you can specify hibernate.search.[default|<indexname>].merge_factor which will apply the same setting for batch and  transaction.

I am actually not sure whether batch vs transaction makes sense for ram_buffer_size as well? 

Alternatively, we could think about finding a way to expose the IndexWriters. This way you could get hold of them and set values we haven't exposed yet programmaticly.  

> Expose IndexWriter setting MAX_FIELD_LENGTH via IndexWriterSetting
> ------------------------------------------------------------------
>
>                 Key: HSEARCH-200
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-200
>             Project: Hibernate Search
>          Issue Type: New Feature
>          Components: engine
>    Affects Versions: 3.0.1.GA
>            Reporter: Hardy Ferentschik
>            Priority: Minor
>
> http://forum.hibernate.org/viewtopic.php?t=987001

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list