Re: Multiple doc types in schema

2007-06-20 Thread Jim Dow
 Message 
From: Chris Hostetter [EMAIL PROTECTED]
To: solr-user@lucene.apache.org; Jack L [EMAIL PROTECTED]
Sent: Wednesday, June 6, 2007 6:58:10 AM
Subject: Re: Multiple doc types in schema


: This is based on my understanding that solr/lucene does not
: have the concept of document type. It only sees fields.
:
: Is my understanding correct?

it is.

: It seems a bit unclean to mix fields of all document types
: in the same schema though. Or, is there a way to allow multiple
: document types in the schema, and specify what type to use
: when indexing and searching?

it's really just an issue of semantics ... the schema.xml is where you
list all of the fields you need in your index, any notion of doctype is
entire artificial ... you could group all of the
fields relating to doctypeA in one section of the schema.xml, then have a
big !-- ##...## -- line and then list the fields in doctypeB, etc... but
wat if there are fields you use in both doctypes ? .. how much you mix
them is entirely up to you.



-Hoss








--
Jim Dow

http://www.incontextnw.com

https://www.linkedin.com/in/jimmydow

mobile: 503-502-0113
[EMAIL PROTECTED]
IM: Jim Dow (MSN)


Any Parm Substituion Ideas...

2007-04-10 Thread Jim Dow
I really like the flexibility of naming request handlers to append general 
constraints / filters.

Has anyone spun thoughts around something like a solr.ParmSubstHandler or any 
way to pass maybe a special
ps=0:discussions; ps=1:images; ps=2:false


requestHandler name=partitioned class=solr.ParmSubstHandler 
lst name=defaults
...
.

lst name=appends
  str name=fqcategory:[0]/str
  str name=fqcategory:[1]/str
  str name=fqisadmin:[2]/str
/lst
...
/requestHandler

This may be inappropriate for building into SOLR; I'm not sure, but I'm looking 
at techniques to round out the appends to be even more flexible.

If there is interest and it makes sense to a wider audience, maybe I should try 
my hand at it.

Thanks...Jim Dow.