Fwd: indexing only selected fields
-- Forwarded message -- From: Igor Littig Date: 2013/5/30 Subject: indexing only selected fields To: solr-user-...@lucene.apache.org Hello everyone. I'm quite new in Solr and need your advice... Does anybody know how to index not all fields in an uploading document but only those which I mentioned in the schema, others fields and symbols just ignore. Is it possible ???
Re: indexing only selected fields
Alex Thank you for the answer. I am submitting by POST method via curl... For example when I want to submit a document I'm typing in the command line: curl 'http://localhost:8983/solr/update/json?commit=true' --data-binary @ base.info -H 'Content-type:application/json' where "base.info" my file with information which I want to index. Could you in which ways(methods) I can automatically omit unknown fields. It would be easier to select only needed fields. Cheers Igor 2013/5/30 Alexandre Rafalovitch > How are you submitting your document? Some methods automatically > ignore unknown fields, other complaint. > > In any case, there is always a way to define an ignored field type. > The schema.xml in the main example shows how to do it. Search for > 'ignored'. But beware that this will hide all spelling and other > errors later.. > > Regards, >Alex. > Personal blog: http://blog.outerthoughts.com/ > LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch > - Time is the quality of nature that keeps events from happening all > at once. Lately, it doesn't seem to be working. (Anonymous - via GTD > book) > > > On Thu, May 30, 2013 at 10:39 AM, Igor Littig > wrote: > > -- Forwarded message -- > > From: Igor Littig > > Date: 2013/5/30 > > Subject: indexing only selected fields > > To: solr-user-...@lucene.apache.org > > > > > > Hello everyone. > > > > I'm quite new in Solr and need your advice... Does anybody know how to > > index not all fields in an uploading document but only those which I > > mentioned in the schema, others fields and symbols just ignore. Is it > > possible ??? >
Re: indexing only selected fields
Ok, that is clear. Thanks fo the answer 2013/5/30 Alexandre Rafalovitch > If you want to just removing anything that does not match then > 'ignored' field type in example schema would work. If you want to > ignore specific fields but complain on any unexpected things you can > still use specific fields but with ignored type. > > Or you could use Update Request Processors like this one: > > http://lucene.apache.org/solr/4_3_0/solr-core/org/apache/solr/update/processor/IgnoreFieldUpdateProcessorFactory.html > > Regards, >Alex. > Personal blog: http://blog.outerthoughts.com/ > LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch > - Time is the quality of nature that keeps events from happening all > at once. Lately, it doesn't seem to be working. (Anonymous - via GTD > book) > > > On Thu, May 30, 2013 at 10:55 AM, Igor Littig > wrote: > > Alex > > > > Thank you for the answer. I am submitting by POST method via curl... For > > example when I want to submit a document I'm typing in the command line: > > > > curl 'http://localhost:8983/solr/update/json?commit=true' --data-binary > @ > > base.info -H 'Content-type:application/json' > > > > where "base.info" my file with information which I want to index. Could > you > > in which ways(methods) I can automatically omit unknown fields. It would > be > > easier to select only needed fields. > > > > Cheers > > Igor > > > > > > 2013/5/30 Alexandre Rafalovitch > > > >> How are you submitting your document? Some methods automatically > >> ignore unknown fields, other complaint. > >> > >> In any case, there is always a way to define an ignored field type. > >> The schema.xml in the main example shows how to do it. Search for > >> 'ignored'. But beware that this will hide all spelling and other > >> errors later.. > >> > >> Regards, > >>Alex. > >> Personal blog: http://blog.outerthoughts.com/ > >> LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch > >> - Time is the quality of nature that keeps events from happening all > >> at once. Lately, it doesn't seem to be working. (Anonymous - via GTD > >> book) > >> > >> > >> On Thu, May 30, 2013 at 10:39 AM, Igor Littig > >> wrote: > >> > -- Forwarded message -- > >> > From: Igor Littig > >> > Date: 2013/5/30 > >> > Subject: indexing only selected fields > >> > To: solr-user-...@lucene.apache.org > >> > > >> > > >> > Hello everyone. > >> > > >> > I'm quite new in Solr and need your advice... Does anybody know how to > >> > index not all fields in an uploading document but only those which I > >> > mentioned in the schema, others fields and symbols just ignore. Is it > >> > possible ??? > >> >
indexing documents
Good day everyone. I recently faced another problem. I've got a bunch of documents to index. The problem, that they in the same time database for another application. These documents stored in JSON format in the following scheme: { "id": 10, "name": "dad 177", "cat":[{ "id":254, "name":"124" }] } When I'm trying to post them, I get the following error: ERROR org.apache.solr.core.SolrCore – org.apache.solr.common.SolrException: Unknown command: id [8] Is there a way to index these documents without changing ? How can i modify the schema or I need to do something else ?