dataimporthandler - Solr loading information without data import handler -


i have 700.000 street names, 8111 municipality names, , 80333 locality postcodes. index information in solr. user wants search information through ajax autocomplete form. have proved few data , behavoir of ajax autocomplete form it's ok.

 <fieldtype name="text" class="solr.textfield" positionincrementgap="100">   <analyzer type="index">     <tokenizer class="solr.whitespacetokenizerfactory"/>     <filter class="solr.stopfilterfactory"             ignorecase="true"             words="stopwords.txt"             enablepositionincrements="true"             />     <filter class="solr.worddelimiterfilterfactory" generatewordparts="1" generatenumberparts="1" catenatewords="1" catenatenumbers="1" catenateall="0" splitoncasechange="1"/>     <filter class="solr.lowercasefilterfactory"/>     <filter class="solr.snowballporterfilterfactory" language="english" protected="protwords.txt"/>   </analyzer>   <analyzer type="query">     <tokenizer class="solr.whitespacetokenizerfactory"/>     <filter class="solr.synonymfilterfactory" synonyms="synonyms.txt" ignorecase="true" expand="true"/>     <filter class="solr.stopfilterfactory"             ignorecase="true"             words="stopwords.txt"             enablepositionincrements="true"             />     <filter class="solr.worddelimiterfilterfactory" generatewordparts="1" generatenumberparts="1" catenatewords="0" catenatenumbers="0" catenateall="0" splitoncasechange="1"/>     <filter class="solr.lowercasefilterfactory"/>     <filter class="solr.snowballporterfilterfactory" language="english" protected="protwords.txt"/>   </analyzer> </fieldtype> 

the problem happens when loading data solr

  • how should load information solr server (i'm in grails app , need load instances have information without data input handler) today have been many hours today , grails console crashed :( --> should use grails script instead of doing service , executing grails console??
  • or should use data input handler load faster?? can concat string values diferent columns of different tables data input handler??

(it's okay have different document each 1 (700.000 + 8111 + 80.333 documents) ??)

thanks time

i assume municipalities, street names, , post codes supposed autocompleted separately. in case you'd use separate solr core each one.

or should use data input handler load faster??

dih pretty fast, , long information doesn't change often, should fine way.

can concat string values diferent columns of different tables data input handler??

yes; in data-config.xml give specific sql query , can use database's native concatenation (e.g. || in oracle).


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -