Re: Solr Java Client

2013-09-16 Thread Baskar Sikkayan
Hi Gora, Thanks a lot for your reply. "As people have already advised you, the best way to decide how to organise your data in the Solr index depends on the searches that you want to make. This is not entirely clear from your description above. The flattening sample that you show above would b

Re: Solr Java Client

2013-09-16 Thread Gora Mohanty
On 16 September 2013 02:47, Baskar Sikkayan wrote: [...] > 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 (

Re: Solr Java Client

2013-09-15 Thread Baskar Sikkayan
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 d

Re: Solr Java Client

2013-09-15 Thread Gora Mohanty
On 15 September 2013 21:36, Baskar Sikkayan 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 Solr

Re: Solr Java Client

2013-09-15 Thread Gora Mohanty
Dear Baskar, It seems that you are trying to jump into the middle, and have a complete understanding of everything before trying things. This makes things difficult both for yourself, and for people trying to help you. Solr can be a little complex for beginners, so it is best to approach things a

Re: Solr Java Client

2013-09-15 Thread Baskar Sikkayan
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");

Re: Solr Java Client

2013-09-15 Thread Erick Erickson
Put the data in two different fields. You can also include a type field and use the fq=type:type1 or fq=type:type2 if you need to distinguish them separately. Best, Erick On Sun, Sep 15, 2013 at 11:00 AM, Baskar Sikkayan wrote: > Hi Erick, > Thanks a lot for your reply. I am still not clear

Re: Solr Java Client

2013-09-15 Thread Baskar Sikkayan
Hi Erick, Thanks a lot for your reply. I am still not clear. I will have 2 different searches. So, there will be 2 different kind of documents with different fields. But the example below, gives me a impression that SolrInputDocument doc = new SolrInputDocument();even there are 2 diff searche

Re: Solr Java Client

2013-09-15 Thread Erick Erickson
Listen to Wunder. You really have to switch gears and think in terms of searching rather than database tables. First, there's no requirement that all documents have the same fields. There's very little penalty for this. Second, you have to get over normalized data. It's unclear how many employee

Re: Solr Java Client

2013-09-15 Thread Baskar Sikkayan
Hi, Thank you very much for your reply. Let me clearly explain my requirement. Its a kind of job site. I have 2 tables that need to be added in solr. 1) employee ( id, name, skills, location, .) 2) job_postings ( id, name, job title, description, salary, date_posted, ) Here, there a

Re: Solr Java Client

2013-09-14 Thread Walter Underwood
Solr does not have tables, and you can't add an index. Solr's data model is flat, like a single table with lots of columns. Think about creating a view where each row has all the information for one search result. It includes everything that is searched (indexed=true in the schema) and returned

Re: Solr Java Client

2013-09-14 Thread Amit Jha
Question is not clear to me. Please be more elaborative in your query. Why do u want to store index to DB tables? Rgds AJ On 15-Sep-2013, at 7:20, Baskar Sikkayan wrote: > How to add index to 3 diff tables from java ... > > > On Sun, Sep 15, 2013 at 6:49 AM, Amit Jha wrote: > >> Add a fie

Re: Solr Java Client

2013-09-14 Thread Baskar Sikkayan
How to add index to 3 diff tables from java ... On Sun, Sep 15, 2013 at 6:49 AM, Amit Jha wrote: > Add a field called "source" in schema.xml and value would be your table > names. > > > > Rgds > AJ > > On 15-Sep-2013, at 5:38, Baskar Sikkayan wrote: > > > Hi, > > I am new to Solr and trying t

Re: Solr Java Client

2013-09-14 Thread Amit Jha
Add a field called "source" in schema.xml and value would be your table names. Rgds AJ On 15-Sep-2013, at 5:38, Baskar Sikkayan wrote: > Hi, > I am new to Solr and trying to use Solr java client instead of using the > Data handler. > Is there any configuration i need to do for this? > > I

Re: Solr Java client API

2012-01-24 Thread Erick Erickson
It would really help to see the relevant parts of the code you're using to see what you've tried. You might want to review: http://wiki.apache.org/solr/UsingMailingLists Best Erick On Mon, Jan 23, 2012 at 2:45 PM, jingjung Ng wrote: > Hi, > > I implemented the facet using > > query.addFacetQuery

RE: Solr java client using solrj API

2009-03-05 Thread Radha C.
@lucene.apache.org; cra...@ceiindia.com Subject: Re: Solr java client using solrj API if you wish to search the content in your DB , you will need to index it first to Solr. the search can be done on Solr and if you are using java , you can use SolrJ for that. --Noble On Thu, Mar 5, 2009 at 4:29 PM, Radha

Re: Solr java client using solrj API

2009-03-05 Thread Noble Paul നോബിള്‍ नोब्ळ्
if you wish to search the content in your DB , you will need to index it first to Solr. the search can be done on Solr and if you are using java , you can use SolrJ for that. --Noble On Thu, Mar 5, 2009 at 4:29 PM, Radha C. wrote: > > Hi, > > We are planning to use solr search server for our data

Re: solr java client code and XML schema

2007-04-21 Thread Yonik Seeley
On 4/21/07, Ge, Yao (Y.) <[EMAIL PROTECTED]> wrote: Looks like there is no publish java client for solr - what a surprise. I would assume it would be very useful for integrating solr into existing apps. The leading candidate is https://issues.apache.org/jira/browse/SOLR-20 Feedback is welcome..