Class NumberFtsAdapter
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.likeall.AbstractFulltextSearchTypeAdapter
ch.tocco.nice2.persist.core.impl.hibernate.query.likeall.NumberFtsAdapter
- All Implemented Interfaces:
FulltextSearchTypeAdapter
,TypeReceivable
- Direct Known Subclasses:
AutoNumberFtsAdapter
Mapped to all numeric data types for which fulltext searching is enabled.
'double' is mapped atm too, but obviously it's a tricky one. Maybe it will be removed later.
-
Field Summary
Fields inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.likeall.AbstractFulltextSearchTypeAdapter
type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Node
createNode
(PathNode field, String query) int
maxChars()
int
minChars()
protected @Nullable Object
normalizeQueryString
(String query) Methods inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.likeall.AbstractFulltextSearchTypeAdapter
asObjectOrNull, createQueryNode, literal, replacePunctWithWildcard, setType, toVariants
-
Constructor Details
-
NumberFtsAdapter
public NumberFtsAdapter()
-
-
Method Details
-
minChars
public int minChars()- Overrides:
minChars
in classAbstractFulltextSearchTypeAdapter
-
maxChars
public int maxChars()- Overrides:
maxChars
in classAbstractFulltextSearchTypeAdapter
-
createNode
- Specified by:
createNode
in classAbstractFulltextSearchTypeAdapter
-
normalizeQueryString
-