lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Baskar Sikkayan <baskar....@gmail.com>
Subject Re: Solr Java Client
Date Sun, 15 Sep 2013 21:17:54 GMT
Hi,
    I read few chapters of solr cookbook and hope, I have good basic
understanding of Apache solr and Datahandler.
I was able to modify the field and all. I am able to understand now, what i
was advised to do.

Have a  question now.

I know in solr its flat file system and the data will be in denormalized
form.

My question :

Have 3 tables,

1) user (userid, firstname, lastname, ...)
2) master (masterid, skills, ...)
3) child (childid, masterid, userid, ...)

In solr, i have added all these field for each document.

Example,

childid,masterid,userid,skills,firstname,lastname

Real Data Example,

1(childid),1(masterid),1(userid),"java,jsp","baskar","sks"
2(childid),1(masterid),1(userid),"java,jsp","baskar","sks"
3(childid),1(masterid),1(userid),"java,jsp","baskar","sks"

The above data sample is from solr document.
 In my search result, i will have to show all these fields.

 User may change the name at any time.The same has to be updated in solr.

In this case, i need to find all the child id that belongs to the user and
update the username with those child ids.

Please tell me if there is any other better approach than this.

Thanks,
Baskar.S






On Sun, Sep 15, 2013 at 9:42 PM, Gora Mohanty <gora@mimirtech.com> wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message