lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hakim Benoudjit <h.benoud...@gmail.com>
Subject Re: Use a field without predefining it it the schema
Date Thu, 30 Jan 2014 00:15:59 GMT
I have found this link
https://cwiki.apache.org/confluence/display/solr/Managed+Schema+Definition+in+SolrConfig
.
I dont know if it's required to modify the schema (see the link), to make
it editable by the REST API. I wish that it doesnt clear all the fields
that I have added manually to the schema.


2014-01-30 Hakim Benoudjit <h.benoudjit@gmail.com>

> Thanks Steve for the link.
> It seems very easy to create `new fields` in the `schema` using the `POST
> request`. But doest mean that I dont have to restart the `solr app`? Is so,
> is this feature available in latest solr version (`v4.6`)?
>
>
> 2014-01-29 Alexandre Rafalovitch <arafalov@gmail.com>
>
> There is an example in the distribution that shows how new fields are
>> auto-defined. I think it is example-schemaless. The secret is in the
>> UpdateRequestProcessor chain that does cleanup and auto-mapping. Plus
>> - I guess - automatically generated schema.
>>
>> Just remember that once the field is added the first time, it now
>> exists. So careful not to send a date-looking thing into what should
>> be a text field.
>>
>> Regards,
>>    Alex.
>> Personal website: http://www.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 Wed, Jan 29, 2014 at 5:45 AM, Steve Rowe <sarowe@gmail.com> wrote:
>> > Hi Hakim,
>> >
>> > Check out the section of the Solr Reference Guide on modifying the
>> schema via REST API:
>> >
>> >
>> https://cwiki.apache.org/confluence/display/solr/Schema+API#SchemaAPI-Modifytheschema
>> >
>> > Steve
>> >
>> > On Jan 28, 2014, at 5:00 PM, Hakim Benoudjit <h.benoudjit@gmail.com>
>> wrote:
>> >
>> >> Hi guys
>> >>
>> >> With the new version of solr (4.6), can I add a field to the index,
>> knowing
>> >> that this field doesnt appear(isnt predefined) in the schema?
>> >>
>> >> I ask this question because I ve seen an issue (on jira) related to
>> this.
>> >>
>> >> Thanks!
>> >
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message