You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by con <co...@gmail.com> on 2008/09/24 11:52:44 UTC
Defining custom schema
Hi guys
How can I define a custom schema based on my table.
Thanks
con
--
View this message in context: http://www.nabble.com/Defining-custom-schema-tp19645491p19645491.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Defining custom schema
Posted by con <co...@gmail.com>.
Ya I know, for a startup i am using that default schema.
But can I develop a schema from the table automatically.
Or do I need to manually create a schema.
Thanks
con
--
View this message in context: http://www.nabble.com/Defining-custom-schema-tp19645491p19663339.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Defining custom schema
Posted by Norberto Meijome <nu...@gmail.com>.
On Wed, 24 Sep 2008 04:42:42 -0700 (PDT)
con <co...@gmail.com> wrote:
> In the table we will be having various column names like CUSTOMER_NAME,
> CUSTOMER_PHONE etc. If we use the default schema.xml, we have to map these
> values to some the default values like cat, features etc. this will cause
> difficulty when we need to process the output.
> Instead can we set the column name and column type dynamically to the
> schema.xml so that the output will show something like, <CUSTOMER_NAME>
> markrmiller</CUSTOMER_NAME>
Con,
the "default" schema you refer to is from the example application. You should definitely edit it and define your own fields.
b
_________________________
{Beto|Norberto|Numard} Meijome
"In my opinion, we don't devote nearly enough scientific research to finding a cure for jerks."
Calvin
I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.
Re: Defining custom schema
Posted by con <co...@gmail.com>.
In the table we will be having various column names like CUSTOMER_NAME,
CUSTOMER_PHONE etc. If we use the default schema.xml, we have to map these
values to some the default values like cat, features etc. this will cause
difficulty when we need to process the output.
Instead can we set the column name and column type dynamically to the
schema.xml so that the output will show something like, <CUSTOMER_NAME>
markrmiller</CUSTOMER_NAME>
If this is not possible, is there any way for aliasing, so that I will get
the above output.
Thanks
con
markrmiller wrote:
>
> con wrote:
>> Hi guys
>> How can I define a custom schema based on my table.
>>
>> Thanks
>> con
>>
> Give us more info. Is your table oak or pine? Custom how what?
>
>
--
View this message in context: http://www.nabble.com/Defining-custom-schema-tp19645491p19647018.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Defining custom schema
Posted by Mark Miller <ma...@gmail.com>.
con wrote:
> Hi guys
> How can I define a custom schema based on my table.
>
> Thanks
> con
>
Give us more info. Is your table oak or pine? Custom how what?