Re: How to set a common field to several values types ?
Thanks for your answer! It is pretty weird because all my tries are wrong. If I try to index data with this field in the schema : It works perfectly (in the case of indexing extract from file (via solr cell/tika)), but it fails if I try to index plain text data! Is there something wrong ? And the field will never be able to index plain text data! (In any case, I haven't seen it). Another way to resolve the situation is to have 2 fields : Then, if I use these fields : The first is to index data from extracted files, and the second is to index plain text data. With this kind of schema, I am able to index both values types, without any mistakes/problems. (but both fields have the same features!). Did you have any suggestions in order to help me ? (to summarize, my goal is to have only one field to share several data types) I have a (dummy?) question to ask : can we index data using the requestHandler "/update/extract/" without extracting any documents ? (I assume my evils are there ) Thank you (again!) -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-set-a-common-field-to-several-values-types-tp2922192p2922573.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to set a common field to several values types ?
Grijesh wrote: > > Which way you are using to index the Plain text data? > I'm using Solr in a Php application, and have to index documents (with tika) and plain text data. The php interface uses curl to send xml data to the solr server. Grijesh wrote: > > As I see your both the fields are same then why not use same field for > both the data. > I just was trying to show what I found weird in my tries! Grijesh wrote: > > What is the need of extracting request handler if you are not going to > extract any document? > My question is rather this : "Can I use the extracting request handler even if I don't have to extract any documents ?" (in order to prevent me from any adaptation to the both cases (documents/plain text)) -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-set-a-common-field-to-several-values-types-tp2922192p2922849.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to set a common field to several values types ?
Finally, I found a workaround! It's absolutely ugly, but it works as well :D : I have to put the plain text data in a file, which is then extract by tika. Now resolved. Best regards. -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-set-a-common-field-to-several-values-types-tp2922192p2927036.html Sent from the Solr - User mailing list archive at Nabble.com.