Re: Newbie Solr questions

2009-11-16 Thread Lance Norskog
Sorry, I did not answer the question. Yes, that's right. SolrJ can only change the documents in the index. It has no power over the metadata. On Mon, Nov 16, 2009 at 4:00 PM, yz5od2 wrote: > thanks, so there is no way to create custom documents/field via the SolrJ > client  API @ runtime.? > > >

Re: Newbie Solr questions

2009-11-16 Thread yz5od2
thanks, so there is no way to create custom documents/field via the SolrJ client API @ runtime.? On Nov 16, 2009, at 4:49 PM, Lance Norskog wrote: here is no way to create custom documents/fields via the SolrJ client @ runtime.

Re: Newbie Solr questions

2009-11-16 Thread Lance Norskog
Solr includes a feature for wild-carding field names. Look for "*_s" in schema.xml. You can create all of the fields you want but they need a specific string pattern in the name. There are no restrictions on the values. It is a bad practice to create other indexes by hand and import them. In fact,

Re: Newbie Solr questions

2009-11-15 Thread yz5od2
ok, so what I am hearing, there is no way to create custom documents/ fields via the SolrJ client @ runtime. Instead you have to use the schema.xml ahead of time OR create a custom index via the lucene APIs then import the indexes into Solr for searching? On Nov 15, 2009, at 9:16 PM, Peter

Re: Newbie Solr questions

2009-11-15 Thread Peter Wolanin
Take a look at the example schema - you can have dynamic fields that are used based on wildcard matching to the field name if a field doesn't mtach the name of an existing field. -Peter On Sun, Nov 15, 2009 at 10:50 AM, yz5od2 wrote: > Thanks for the reply: > > I follow the schema.xml concept, b

Re: Newbie Solr questions

2009-11-15 Thread yz5od2
Thanks for the reply: I follow the schema.xml concept, but what if my requirement is more dynamic in nature? I.E. I would like my developers to be able to annotate a POJO and submit it to the Solr server (embedded) to be indexed according to public properties OR annotations. Is that possibl

Re: Newbie Solr questions

2009-11-14 Thread Avlesh Singh
> > a) Since Solr is built on top of lucene, using SolrJ, can I still directly > create custom documents, specify the field specifics etc (indexed, stored > etc) and then map POJOs to those documents, simular to just using the > straight lucene API? > > b) I took a quick look at the SolrJ javadocs

Newbie Solr questions

2009-11-14 Thread yz5od2
Hi, I am new to Solr but fairly advanced with lucene. In the past I have created custom Lucene search engines that indexed objects in a Java application, so my background is coming from this requirement a) Since Solr is built on top of lucene, using SolrJ, can I still directly create cust