Can you tell me what all docs I need to create...there needs to be a schema.xml 
and what else? A document having my data?

Also, where these should be placed. There's already a schema.xml

Thanks for the prompt response.....

Mamta.

-----Original Message-----
From: Kishan Parmar [mailto:kishan....@gmail.com]
Sent: 01 October, 2013 03:16 PM
To: solr-user@lucene.apache.org
Subject: Re: Newbie to Solr

yes you have to create your own schema
but in schema file you have to add your xml files field name in it like wise 
you can add your field name in it ....

or you can add  your filed in the default schema file

whiithout schema you can not add your xml file to solr

my schema is like this
--------------------------------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<schema name="example" version="1.5">
<fields>
 <field name="No" type="string" indexed="true" stored="true"
required="true" multiValued="false" />
 <field name="Name" type="string" indexed="true" stored="true"
required="true" multiValued="false" />
 <field name="Address" type="string" indexed="true" stored="true"
required="true" multiValued="false" />
 <field name="Mobile" type="string" indexed="true" stored="true"
required="true" multiValued="false" />
</fields>
<uniqueKey>No</uniqueKey>

<types>

  <fieldType name="string" class="solr.StrField" sortMissingLast="true" />
  <fieldType name="int" class="solr.TrieIntField" precisionStep="0"
positionIncrementGap="0" />
</types>
</schema>
-------------------------------------------------------------------------------------------------------------------------------------------------------------

and my file is like this ,,.,.,.,.

-------------------------------------------------------------------------------------------------------------------------------------------------------------
<add>
    <doc>
        <field name="No">100120107088</field>
        <field name="Name">kishan</field>
        <field name="Address">ghatlodia</field>
        <field name="Mobile">9510077394</field>
    </doc>
</add>

Regards,

Kishan Parmar
Software Developer
+91 95 100 77394
Jay Shree Krishnaa !!



On Tue, Oct 1, 2013 at 1:11 AM, mamta <mamta.al...@gmail.com> wrote:

> Hi,
>
> I want to know that if i have to fire some query through the Solr
> admin, do i need to create a new schema.xml? Where do i place it
> incase iahve to create a new one.
>
> Incase i can edit the original schema.xml can there be two fields
> named id in my schema.xml?
>
> I desperately need help in running queries on the Solr admin which is
> configured on a Tomcat server.
>
> What all preparation will i need to do? Schema.xml any docs?
>
> Any help will be highly appreciated.
>
> Thanks,
> Mamta
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Newbie-to-Solr-tp4092876.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

The content of this email together with any attachments, statements and 
opinions expressed herein contains information that is private and confidential 
are intended for the named addressee(s) only. If you are not the addressee of 
this email you may not copy, forward, disclose or otherwise use it or any part 
of it in any form whatsoever. If you have received this message in error please 
notify postmas...@etisalat.ae by email immediately and delete the message 
without making any copies.

Reply via email to