cancel
Showing results for 
Search instead for 
Did you mean: 

How to define new data type?

manuelgentile
Champ in-the-making
Champ in-the-making
I wonder, if there it's possible to define new data type like for example d:content or d:any.


I need to store a LangString data type (made two fields language and value), but i don't know what is the best approach.
Moreover, because i have properties with multiple LangString value for each properties, i think it's necessary to define new data type in data dictionary, isn't it?

Thanks in advance!
3 REPLIES 3

davidc
Star Contributor
Star Contributor
We don't yet support the addition of new data types.  It could be done, but it's just not on the immediate TODO list.  So, for now you can only use d:any, but you can have multi-valued d:any properties.

manuelgentile
Champ in-the-making
Champ in-the-making
Ok, i just immagine this.
Pheraps, how configure lucene to search inside the field of d:any properties?
Is it possibile?

I hope it is!!!!!!!!!

jamen
Confirmed Champ
Confirmed Champ
Hi,

I was just wondering whether you were successful in defining your own data types.  I have the same problem where I want to define a list of strings as a property of a new type. 

Otherwise, how would I use the d:any type to do the same thing?  I assume that I would have to extend the functionality of the web client to display any new data types. 

Just to experiment, I tried to add a property to a custom type using 'd:any', but I can't seem to see the property amongst the other properties I have defined for the type.

If anyone could offer any help/advice that would be appreciated.

Thanks in advanced
Jamen