On Tue, Apr 14, 2009 at 9:44 PM, Alex Vu <alex.v...@gmail.com> wrote:

>
> *schema file is *
> <?xml version="1.0" encoding="UTF-8"?>
> <!--W3C Schema generated by XMLSpy v2009 sp1 (http://www.altova.com)-->
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";>
>    <xs:element name="networkTraffic">
>        <xs:complexType>
>            <xs:sequence>
>                <xs:element name="packet" maxOccurs="unbounded">
>                    <xs:complexType>
>                        <xs:attribute name="terminationTimestamp"
> type="xs:string" use="required"/>
>                        <xs:attribute name="sourcePort" type="xs:string"
> use="required"/>
>                        <xs:attribute name="sourceIp" type="xs:string"
> use="required"/>
>                        <xs:attribute name="protocolPortNumber"
> type="xs:string" use="required"/>
>                        <xs:attribute name="packets" type="xs:string"
> use="required"/>
>                        <xs:attribute name="ok" type="xs:string"
> use="required"/>
>                        <xs:attribute name="initialTimestamp"
> type="xs:string" use="required"/>
>                        <xs:attribute name="flows" type="xs:string"
> use="required"/>
>                        <xs:attribute name="destinatoinIp" type="xs:string"
> use="required"/>
>                        <xs:attribute name="destinationPort"
> type="xs:string" use="required"/>
>                        <xs:attribute name="bytes" type="xs:string"
> use="required"/>
>                    </xs:complexType>
>                </xs:element>
>            </xs:sequence>
>        </xs:complexType>
>    </xs:element>
> </xs:schema>
>
>
> Can someone please show me where do I put these files?  I'm aware that the
> schema.xsd file goes into the directory conf. What about my xml file, and
> txt file?
>

Alex, the Solr schema is not the usual XML Schema (xsd). It is an xml file
which describes the fields, their analyzers, tokenizers, copyFields, default
search field etc.

Look into the example schema supplied by Solr (inside example/solr/conf)
directory and modify it according to your needs.

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to