lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gora Mohanty <g...@mimirtech.com>
Subject Re: Solr Java Client
Date Sun, 15 Sep 2013 16:12:27 GMT
On 15 September 2013 21:36, Baskar Sikkayan <baskar.sks@gmail.com> wrote:
>
> Hi,
>   Thanks for the reply. I got it now. Is there XSD for schema.xml and
> solrconfig.xml?
> Also, if i have two different fields with different filed type, how can
> differentiate it in SolrJava client.
>
> SolrInputDocument doc = new SolrInputDocument();
>
>               doc.addField("cat", "book");
>               doc.addField("id", "book-" + i);
>               doc.addField("name", "The Legend of the Hobbit part " + i);
>               server.add(doc);
>
> Is there any option here to put the field type?
[...]

Field types are defined in schema.xml.

I would again suggest approaching things systematically,
and understanding how the various pieces work.

Regards,
Gora

Mime
View raw message