[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-352) Introduce a programmatic mapping API
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Sun Mar 22 22:15:38 EDT 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32696#action_32696 ]
Emmanuel Bernard commented on HSEARCH-352:
------------------------------------------
Mapping example
SearchMapping mapping = new SearchMapping();
mapping.analyzerDef( "stem", StandardTokenizerFactory.class )
.tokenizerParam( "name", "value" )
.tokenizerParam( "name2", "value2" )
.filter( LowerCaseFilterFactory.class )
.filter( SnowballPorterFilterFactory.class)
.param("language", "English")
.analyzerDef( "ngram", StandardTokenizerFactory.class )
.tokenizerParam( "name", "value" )
.tokenizerParam( "name2", "value2" )
.filter( LowerCaseFilterFactory.class )
.filter( NGramFilterFactory.class)
.param("minGramSize", "3")
.param("maxGramSize", "3")
.indexedClass(Address.class, "Address_Index")
.property("street1", ElementType.FIELD)
.field()
.field()
.name("street1_iso")
.store( Store.YES )
.index( Index.TOKENIZED )
.analyzer( ISOLatin1Analyzer.class)
.field()
.name("street1_ngram")
.analyzer("ngram")
.indexedClass(User.class)
.property("name", ElementType.METHOD)
.field()
.analyzerDef( "minimal", StandardTokenizerFactory.class );
> Introduce a programmatic mapping API
> ------------------------------------
>
> Key: HSEARCH-352
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-352
> Project: Hibernate Search
> Issue Type: New Feature
> Components: mapping
> Reporter: Emmanuel Bernard
> Fix For: 3.2.0
>
>
> Initial commit. A lot of work to do still. The core idea is here but we need to:
> - complete the API describing the mapping
> - complete its binding to annotations
> - support merge between the programmatic API and annotations
> PS: if we go all the way for that, we won't have people nagging for XML support anymore :)
--
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