Small correction:
<field column="column" template="my-string-literal"/>

Also, you should add transformer="TemplateTransformer" in your entity and
then the above will work. There is no attribute named "value" in the field
definition.

On Thu, Jun 5, 2008 at 9:47 AM, Noble Paul നോബിള്‍ नोब्ळ् <
[EMAIL PROTECTED]> wrote:

> attachment did not work  try this
>
>
> http://www.nabble.com/Re%3A-How-to-describe-2-entities-in-dataConfig-for-the-DataImporter--p17577610.html
> --Noble
>
> On Thu, Jun 5, 2008 at 9:37 AM, Noble Paul നോബിള്‍ नोब्ळ्
> <[EMAIL PROTECTED]> wrote:
> > commonField="true" can be added in any field when you are using an
> > XPathEntityProcessor.But you will never need to do so because only xml
> > has such a requirement. If you wish to add a string literal use a
> > TemplateTransformer and keep the <field <column="column" value="value"
> > template="my-string-literal"/>
> > The one in the patch has a bug use the attached one.
> >
> >
> http://wiki.apache.org/solr/DataImportHandler#head-071ff018f44ecbdb1cf55afc4c2a857f44ea1ea4
> >
> > --Noble
> >
> >
> >
> > On Thu, Jun 5, 2008 at 3:46 AM, Jon Baer <[EMAIL PROTECTED]> wrote:
> >> Hi,
> >>
> >> I have a question about the HttpDataSource (DataImportHandler) ...
> >>
> >> Is it possible add common values *explicitly*, something like:
> >>
> >> <field column="column" value="value" commonField="true" />
> >>
> >> Im blanking on if xpath has a command / option to return back just a
> string
> >> literal (vs. node).
> >>
> >> Thanks.
> >>
> >> - Jon
> >>
> >>
> >>
> >>
> >
> >
> >
> > --
> > --Noble Paul
> >
>
>
>
> --
> --Noble Paul
>



-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to