You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2009/02/04 13:06:00 UTC

[Solr Wiki] Trivial Update of "DataImportHandler" by FergusMcMenemie

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by FergusMcMenemie:
http://wiki.apache.org/solr/DataImportHandler

The comment on the change is:
add example illustrating the allowable xpath expressions I know about.

------------------------------------------------------------------------------
  If an API supports chunking (when the dataset is too large) multiple calls need to be made to complete the process. 
  X!PathEntityprocessor supports this with a transformer. If transformer returns a row which contains a field '''`$hasMore`''' with a the value `"true"` the Processor makes another request with the same url template (The actual value is recomputed before invoking ). A transformer can pass a totally new url too for the next call by returning a row which contains a field '''`$nextUrl`''' whose value must be the complete url for the next call.
  
- The X!PathEntityProcessor implements a streaming parser which supports a subset of xpath syntax. Complete xpath syntax is not supported but most of the common use cases are covered.
+ The X!PathEntityProcessor implements a streaming parser which supports a subset of xpath syntax. Complete xpath syntax is not supported but most of the common use cases are covered as follows:-
+ {{{
+    xpath="/a/b/subject[@qualifier='fullTitle']"
+    xpath="/a/b/subject/@qualifier"
+    xpath="/a/b/c"
+ }}}
  
  
  == HttpDataSource Example ==