Re: HttpDataSource common fields

2008-06-05 Thread Shalin Shekhar Mangar
Small correction:


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  > 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:
> >>
> >> 
> >>
> >> 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.


Re: HttpDataSource common fields

2008-06-04 Thread Noble Paul നോബിള്‍ नोब्ळ्
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  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:
>>
>> 
>>
>> Im blanking on if xpath has a command / option to return back just a string
>> literal (vs. node).
>>
>> Thanks.
>>
>> - Jon
>>
>>
>>
>>
>
>
>
> --
> --Noble Paul
>



-- 
--Noble Paul


Re: HttpDataSource common fields

2008-06-04 Thread Noble Paul നോബിള്‍ नोब्ळ्
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 
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:
>
> 
>
> Im blanking on if xpath has a command / option to return back just a string
> literal (vs. node).
>
> Thanks.
>
> - Jon
>
>
>
>



-- 
--Noble Paul