Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

schema.xml missing fields #74

Open
AlJohri opened this issue Feb 15, 2014 · 6 comments
Open

schema.xml missing fields #74

AlJohri opened this issue Feb 15, 2014 · 6 comments

Comments

@AlJohri
Copy link
Contributor

AlJohri commented Feb 15, 2014

When I symlinked solr/schema.xml to my lucene database and tried to ingest a sample document it would error out on several missing fields:

   <field name="year" type="string" indexed="true" stored="true" required="true" /> 
   <field name="month" type="string" indexed="true" stored="true" required="true" /> 
   <field name="day" type="string" indexed="true" stored="true" required="true" /> 
   <field name="year_month" type="string" indexed="true" stored="true" required="true" /> 
   <field name="page_id" type="string" indexed="true" stored="true" required="true" /> 
   <field name="slug" type="string" indexed="true" stored="true" required="true" /> 
   <field name="congress" type="string" indexed="true" stored="true" required="true" /> 
   <field name="session" type="string" indexed="true" stored="true" required="true" /> 

Should I open a PR and add them in?

P.S. Also the solr version I was using required me to have this field

<field name="_version_" type="long" indexed="true" stored="true"/>
@drinks
Copy link
Contributor

drinks commented Feb 16, 2014

Yeah, those are definitely all needed, a PR would be welcome. Thanks for putting this through its paces, we haven't tried to stand up an instance really since building it.

@AlJohri
Copy link
Contributor Author

AlJohri commented Feb 16, 2014

Not a problem. I'm working on settings this up for myself and will see it through until I'm done. What's the easiest way for you guys to look through these changes? Issues/PR for each change? Or one big one?

Just noticed another missing field (I'll add it in, just dropping it here for posterity.

<field name="speaker_middlename" type="string" indexed="true" stored="true" required="false" /> 
<field name="speaker_title" type="string" indexed="true" stored="true" required="false" /> 

@drinks
Copy link
Contributor

drinks commented Feb 16, 2014

Separate PRs would be preferable, but If it's too much trouble to branch
each change that's understandable. Looks like I need at a minimum to add
another setting for ingest.py to take a solr host. I'll dive into this
stuff Tuesday but feel free to keep adding commits as you make them in
the meantime. Thanks again!

@AlJohri
Copy link
Contributor Author

AlJohri commented Feb 16, 2014

Sure! I can split it up. I didn't think it would be this many changes initially so I just kept committing to master but I can see how its quickly becoming unwieldy if you want to reject anything.

I had a couple questions regarding getting set up, do you have a preferred method of contact? Github has your email as [email protected].

@drinks
Copy link
Contributor

drinks commented Feb 16, 2014

Yep that email will work just fine.

@AlJohri
Copy link
Contributor Author

AlJohri commented Aug 14, 2014

@drinks please see #89

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants