Re: Confusion about entities and documents

2010-10-22 Thread harrysmith
What I get when I search for, say, XYZ, is a document that has XYZ Corp as a manufacturer name, but the array of parts_manu appears to be a child of the document, not the parts array. Is this the correct behavior, insofar as a document has a single level of elements, and that's it? If so, what

Re: DataImportHandler dynamic fields clarification

2010-09-30 Thread harrysmith
Two things, one are your DB column uppercase as this would effect the out. Interesting, I was under the impression that case does not matter. From http://wiki.apache.org/solr/DataImportHandler#A_shorter_data-config : It is possible to totally avoid the field entries in entities if the names

DataImportHandler Error CHARBytesToJavaChars

2010-09-30 Thread harrysmith
Anyone ever see this error on an import? Caused by: java.lang.NullPointerException at oracle.jdbc.driver.DBConversion._CHARBytesToJavaChars(DBConversion.java:1015) The Oracle column being converted is VARCHAR2(4000 Char) and there are NULLs present in the record set. Envrionment: Solr

DataImportHandler dynamic fields clarification

2010-09-29 Thread harrysmith
Looking for some clarification on DIH to make sure I am interpreting this correctly. I have a wide DB table, 100 columns. I'd rather not have to add 100 values in schema.xml and data-config.xml. I was under the impression that if the column name matched a dynamic Field name, it would be added. I

Re: DataImportHandler and SAXParseExceptions with Jetty

2010-08-13 Thread harrysmith
Shawn Heisey-4 wrote: Because and are critical characters in XML, you have to encode them to actually use them as part of your config, just as you do on an HTML page. Use lt; instead of . When I first ran into this, I was surprised that rt; was not required as well, but it's

DataImportHandler and SAXParseExceptions with Jetty

2010-08-12 Thread harrysmith
Win XP, Solr 1.4.1 out of the box install, using jetty. If I add greater than or less than (ie or ) in any xml field and attempt to load or run from the DataImportConsole I receive a SAXParseException. Example follows: If I don't have a 'less than' it works just fine. I know this must work,

Re: DIH transformer script size limitations with Jetty?

2010-08-11 Thread harrysmith
To follow up on my own question, it appears this is only an issue when using the DataImport console debugging tools. It looks like when submitting the debugging request, the data-config.xml is sent via a GET request, which would fail. However, using the exact same data-config.xml via a

Re: Schema Definition Question

2010-08-11 Thread harrysmith
I think I know where you're headed, I was struggling with the same issue. In my case, using results from Solr I link to a detailed profile using an ID, but I am displaying the String value. I was looking for something like: doc arr name=ITEM str name=ITEM_ID12345/str sub_doc str

How to compile nightly build?

2010-08-10 Thread harrysmith
I am attempting to follow the instructions located at: http://wiki.apache.org/solr/ExtractingRequestHandler#Getting_Started_with_the_Solr_Example I have downloaded the most recent clean build from Hudson. After running 'ant example' I get the following error:

Re: How to compile nightly build?

2010-08-10 Thread harrysmith
In this particular case I would like to get the trunk. Is there a different link for binary distributions of nightly builds? I had been downloading from here: http://hudson.zones.apache.org/hudson/job/Solr-trunk/lastSuccessfulBuild/artifact/trunk/solr/dist/ In the case I did want to compile

Re: DIH and multivariable fields problems

2010-08-09 Thread harrysmith
This is increasingly more looking like a bug. To recap, I am trying to use the DIH to import multivalued dynamic fields and using a variable to name that field. Upon further testing, the multivalued import works fine with a static/constant name, but only keeps the first record when naming the

DIH and multivariable fields problems

2010-08-06 Thread harrysmith
I'm having a difficult time understanding how multivariable fields work with the DataImportHandler when the source is a RDBMS. I've read the following from the wiki: -- What is a row? A row in DataImportHandler is a Map (MapString, Object). In the map , the key is the name of the field

Re: DIH and multivariable fields problems

2010-08-06 Thread harrysmith
://gradschoolnow.com On 8/6/10 4:39 PM, harrysmith wrote: I'm having a difficult time understanding how multivariable fields work with the DataImportHandler when the source is a RDBMS. I've read the following from the wiki: -- View this message in context: http://lucene.472066.n3

Re: DIH and multivariable fields problems

2010-08-06 Thread harrysmith
That's fine, i'm ok with the sub-queries and the additional overhead is to be expected and how I would have thought it would work. I guess my question is does it work that way at all or am I misinterpreting something? Have others successfully imported dynamic multivalued fields in a child entity

Re: Some basic DataImportHandler questions

2010-08-04 Thread harrysmith
Thanks, I think part of my issue may be I am misunderstanding how to use the entity and field tags to import data in a particular format and am looking for a few more examples. Lets say I have a database table with 2 columns that contain metadata fields and values, and would like to import this