Changes between Version 31 and Version 32 of Event/2013/GSoC/TextSearch


Ignore:
Timestamp:
07/30/13 22:27:31 (12 years ago)
Author:
Vishrut Mehta
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Event/2013/GSoC/TextSearch

    v31 v32  
    5353}}}
    5454 * You can also change this path according to you suitability, like if solr is on another machine, then the directory path would be different.
    55  * Now, we will discuss the schema changes -
     55 * Now, we will discuss the schema changes in file solr-4.3.x/example/solr/collection1/conf/schema.xml -
     56  * Add the following in the <fields>..</fields> tag:
     57{{{
     58<fields>
     59.
     60.
     61
     62<field name="tablename" type="text_general" indexed="true" stored="true"/>
     63<field name="filetype" type="text_general" indexed="true" stored="true"/>
     64<field name="filename" type="text_general" indexed="true" stored="true"/>
     65
     66.
     67.
     68</fields>
     69}}}
     70  * After adding this, after the <fields>..</fields> tag, add the following code for <copyfield>
     71{{{
     72
     73<copyField source="filetype" dest="text"/>
     74<copyField source="tablename" dest="text"/>
     75<copyField source="filename" dest="text"/>
     76
     77}}}
     78
     79
    5680
    5781