Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

Incremental update of docs in solr -


i have table called emp id , name fields , has 2 records. have formed xml doc

<add>   <doc>     <field name="id">1</field>     <field name="name">name1</field>   </doc>   <doc>     <field name="id">2</field>     <field name="name">name2</field>   </doc> </add> 

i have indexed above xml file solr first time. when 3rd record gets created in table, should go xml file has third record i.e

<add>   <doc>     <field name="id">3</field>     <field name="name">name3</field>   </doc> </add> 

and index xml file separately?

or should add new 3rd record original xml file i.e

<add>   <doc>     <field name="id">1</field>     <field name="name">name1</field>   </doc>   <doc>     <field name="id">2</field>     <field name="name">name2</field>   </doc>   <doc>     <field name="id">3</field>     <field name="name">name3</field>   </doc> </add> 

and index newly created xml file again? here when there millions of record generating xml file take time , indexing docs take time.

so, how need handle incremental indexing/updation scenario?

creating new xml file contains delta (i.e. new or changed rows) solves problem, , correct more efficient doing full export/import.

if want circumvent creating xml file, should dataimporthandler, lets import data (for instance) jdbc source. it's included contrib solr.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -