You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Ricky Martin <ri...@gmail.com> on 2008/05/09 08:37:33 UTC
How Special Character '&' used in indexing
Hello,
I have a field name <field name ="company">A & K Inc</field>, which i cannot
parse using XML to POST data to solr. When i search using A & K, i should be
getting the exactly this field name.
Please someone help me with this ASAP.
Thanks,
Ricky.
Re: How Special Character '&' used in indexing
Posted by Ricky <ri...@gmail.com>.
Thanks all,
I got it, its &
/Ricky
On Fri, May 9, 2008 at 9:38 AM, Erick Erickson <er...@gmail.com>
wrote:
> I don't see a semi-colon at the end of your entity reference, is that a
> typo?
> i.e. &
>
>
> On Fri, May 9, 2008 at 9:26 AM, Ricky <ri...@gmail.com> wrote:
>
> > I have tried sending the '&' instead of '&' like the following,
> > <field name ="company">A & K Inc</field>.
> >
> > But i still get the same error ""entity reference name can not contain
> > character ' <position: START_TAG seen ...<fieldname = "company">A &
> ..
> >
> > Please kindly reply ASAP.
> >
> >
> > Thanks,
> > Ricky
> >
> > On Fri, May 9, 2008 at 3:48 AM, Shalin Shekhar Mangar <
> > shalinmangar@gmail.com> wrote:
> >
> > > You need to XML encode special characters. Use & instead of &.
> > >
> > > On Fri, May 9, 2008 at 12:07 PM, Ricky Martin <
> ricky.martin777@gmail.com
> > >
> > > wrote:
> > >
> > > > Hello,
> > > >
> > > > I have a field name <field name ="company">A & K Inc</field>, which i
> > > > cannot
> > > > parse using XML to POST data to solr. When i search using A & K, i
> > should
> > > > be
> > > > getting the exactly this field name.
> > > >
> > > > Please someone help me with this ASAP.
> > > >
> > > > Thanks,
> > > > Ricky.
> > > >
> > >
> > >
> > >
> > > --
> > > Regards,
> > > Shalin Shekhar Mangar.
> > >
> >
>
Re: How Special Character '&' used in indexing
Posted by Erick Erickson <er...@gmail.com>.
I don't see a semi-colon at the end of your entity reference, is that a
typo?
i.e. &
On Fri, May 9, 2008 at 9:26 AM, Ricky <ri...@gmail.com> wrote:
> I have tried sending the '&' instead of '&' like the following,
> <field name ="company">A & K Inc</field>.
>
> But i still get the same error ""entity reference name can not contain
> character ' <position: START_TAG seen ...<fieldname = "company">A & ..
>
> Please kindly reply ASAP.
>
>
> Thanks,
> Ricky
>
> On Fri, May 9, 2008 at 3:48 AM, Shalin Shekhar Mangar <
> shalinmangar@gmail.com> wrote:
>
> > You need to XML encode special characters. Use & instead of &.
> >
> > On Fri, May 9, 2008 at 12:07 PM, Ricky Martin <ricky.martin777@gmail.com
> >
> > wrote:
> >
> > > Hello,
> > >
> > > I have a field name <field name ="company">A & K Inc</field>, which i
> > > cannot
> > > parse using XML to POST data to solr. When i search using A & K, i
> should
> > > be
> > > getting the exactly this field name.
> > >
> > > Please someone help me with this ASAP.
> > >
> > > Thanks,
> > > Ricky.
> > >
> >
> >
> >
> > --
> > Regards,
> > Shalin Shekhar Mangar.
> >
>
RE: How Special Character '&' used in indexing
Posted by Steven A Rowe <sa...@syr.edu>.
Hi Ricky,
Mike and wunder, neither of whom are newbies, were trying to educate you about this mailing list's etiquette (generally accepted rules of conduct). While you may *think* that two regular correspondents on this list are just hassling you, I expect that you will find it difficult to continue obtaining assistance here should you persist in ignoring list members' advice about this matter.
BTW, I complete agree with Mike and wunder that these two carry the same annoying weight:
Please kindly reply ASAP.
Reply ASAP.
Saying "please kindly" in front of something that is not considered acceptable does not make it more acceptable.
Steve
On 05/14/2008 at 4:07 AM, Ricky wrote:
> I dont know whats your problem when the people who had
> answered my question
> had no issues. Please dont Spam anymore !
>
> Thanks,
> Ricky.
>
> On Tue, May 13, 2008 at 11:09 AM, Walter Underwood
> <wu...@netflix.com> wrote:
>
> > "ASAP" means "As Soon As Possible", not "As Soon As Convenient".
> > Please don't say that if you don't mean it. --wunder
> >
> > On 5/12/08 6:48 AM, "Ricky" <ri...@gmail.com> wrote:
> >
> > > Hi Mike,
> > >
> > > Thanx for your reply. I have got the answer to the question posted.
> > >
> > > I know people are donating time here. ASAP doesnt mean that am
> > > demanding them to reply fast. Please read the lines before you comment
> > > something(*Please kindly* reply ASAP). Am a newbie and with curiosity
> > > i have requested to answer. I dont know if it has hurt you(Am sorry
> > > for that)
> > >
> > > Thanks,
> > > Ricky.
> > >
> > >
> > > On Fri, May 9, 2008 at 3:30 PM, Mike Klaas <mi...@gmail.com>
> > > wrote:
> > >
> > > >
> > > > On 9-May-08, at 6:26 AM, Ricky wrote:
> > > >
> > > > > I have tried sending the '&' instead of '&' like the following,
> > > > > <field name ="company">A & K Inc</field>.
> > > >
> > > > > But i still get the same error ""entity reference name can not
> > > > > contain character ' <position: START_TAG seen ...<fieldname =
> "company">A
> > &
> > > > > ..
> > > > >
> > > >
> > > > Please use a library for doing xml encoding--there is
> absolutely no
> > reason
> > > > to do this yourself.
> > > >
> > > > Please kindly reply ASAP.
> > > >
> > > >
> > > > Please also realize that people responding here are donating their
> > > > time and that it is inappropriate to ask for an expedited response.
> > > >
> > > > -Mike
> > > >
> > > >
> >
> >
>
Re: How Special Character '&' used in indexing
Posted by Ricky <ri...@gmail.com>.
I dont know whats your problem when the people who had answered my question
had no issues. Please dont Spam anymore !
Thanks,
Ricky.
On Tue, May 13, 2008 at 11:09 AM, Walter Underwood <wu...@netflix.com>
wrote:
> "ASAP" means "As Soon As Possible", not "As Soon As Convenient".
> Please don't say that if you don't mean it. --wunder
>
> On 5/12/08 6:48 AM, "Ricky" <ri...@gmail.com> wrote:
>
> > Hi Mike,
> >
> > Thanx for your reply. I have got the answer to the question posted.
> >
> > I know people are donating time here. ASAP doesnt mean that am demanding
> > them to reply fast. Please read the lines before you comment
> something(*Please
> > kindly* reply ASAP). Am a newbie and with curiosity i have requested to
> > answer. I dont know if it has hurt you(Am sorry for that)
> >
> > Thanks,
> > Ricky.
> >
> >
> > On Fri, May 9, 2008 at 3:30 PM, Mike Klaas <mi...@gmail.com> wrote:
> >
> >>
> >> On 9-May-08, at 6:26 AM, Ricky wrote:
> >>
> >> I have tried sending the '&' instead of '&' like the following,
> >>> <field name ="company">A & K Inc</field>.
> >>>
> >>> But i still get the same error ""entity reference name can not contain
> >>> character ' <position: START_TAG seen ...<fieldname = "company">A
> &
> >>> ..
> >>>
> >>
> >> Please use a library for doing xml encoding--there is absolutely no
> reason
> >> to do this yourself.
> >>
> >> Please kindly reply ASAP.
> >>>
> >>
> >> Please also realize that people responding here are donating their time
> >> and that it is inappropriate to ask for an expedited response.
> >>
> >> -Mike
> >>
> >>
>
>
Re: How Special Character '&' used in indexing
Posted by Walter Underwood <wu...@netflix.com>.
"ASAP" means "As Soon As Possible", not "As Soon As Convenient".
Please don't say that if you don't mean it. --wunder
On 5/12/08 6:48 AM, "Ricky" <ri...@gmail.com> wrote:
> Hi Mike,
>
> Thanx for your reply. I have got the answer to the question posted.
>
> I know people are donating time here. ASAP doesnt mean that am demanding
> them to reply fast. Please read the lines before you comment something(*Please
> kindly* reply ASAP). Am a newbie and with curiosity i have requested to
> answer. I dont know if it has hurt you(Am sorry for that)
>
> Thanks,
> Ricky.
>
>
> On Fri, May 9, 2008 at 3:30 PM, Mike Klaas <mi...@gmail.com> wrote:
>
>>
>> On 9-May-08, at 6:26 AM, Ricky wrote:
>>
>> I have tried sending the '&' instead of '&' like the following,
>>> <field name ="company">A & K Inc</field>.
>>>
>>> But i still get the same error ""entity reference name can not contain
>>> character ' <position: START_TAG seen ...<fieldname = "company">A &
>>> ..
>>>
>>
>> Please use a library for doing xml encoding--there is absolutely no reason
>> to do this yourself.
>>
>> Please kindly reply ASAP.
>>>
>>
>> Please also realize that people responding here are donating their time
>> and that it is inappropriate to ask for an expedited response.
>>
>> -Mike
>>
>>
Re: How Special Character '&' used in indexing
Posted by Ricky <ri...@gmail.com>.
Hi Mike,
Thanx for your reply. I have got the answer to the question posted.
I know people are donating time here. ASAP doesnt mean that am demanding
them to reply fast. Please read the lines before you comment something(*Please
kindly* reply ASAP). Am a newbie and with curiosity i have requested to
answer. I dont know if it has hurt you(Am sorry for that)
Thanks,
Ricky.
On Fri, May 9, 2008 at 3:30 PM, Mike Klaas <mi...@gmail.com> wrote:
>
> On 9-May-08, at 6:26 AM, Ricky wrote:
>
> I have tried sending the '&' instead of '&' like the following,
> > <field name ="company">A & K Inc</field>.
> >
> > But i still get the same error ""entity reference name can not contain
> > character ' <position: START_TAG seen ...<fieldname = "company">A &
> > ..
> >
>
> Please use a library for doing xml encoding--there is absolutely no reason
> to do this yourself.
>
> Please kindly reply ASAP.
> >
>
> Please also realize that people responding here are donating their time
> and that it is inappropriate to ask for an expedited response.
>
> -Mike
>
>
Re: How Special Character '&' used in indexing
Posted by Mike Klaas <mi...@gmail.com>.
On 9-May-08, at 6:26 AM, Ricky wrote:
> I have tried sending the '&' instead of '&' like the following,
> <field name ="company">A & K Inc</field>.
>
> But i still get the same error ""entity reference name can not contain
> character ' <position: START_TAG seen ...<fieldname = "company">A
> & ..
Please use a library for doing xml encoding--there is absolutely no
reason to do this yourself.
> Please kindly reply ASAP.
Please also realize that people responding here are donating their
time and that it is inappropriate to ask for an expedited response.
-Mike
Re: How Special Character '&' used in indexing
Posted by Alan Rykhus <al...@mnsu.edu>.
&
you're missing the ;;;;;
On Fri, 2008-05-09 at 08:26 -0500, Ricky wrote:
> I have tried sending the '&' instead of '&' like the following,
> <field name ="company">A & K Inc</field>.
>
> But i still get the same error ""entity reference name can not contain
> character ' <position: START_TAG seen ...<fieldname = "company">A & ..
>
> Please kindly reply ASAP.
>
>
> Thanks,
> Ricky
>
> On Fri, May 9, 2008 at 3:48 AM, Shalin Shekhar Mangar <
> shalinmangar@gmail.com> wrote:
>
> > You need to XML encode special characters. Use & instead of &.
> >
> > On Fri, May 9, 2008 at 12:07 PM, Ricky Martin <ri...@gmail.com>
> > wrote:
> >
> > > Hello,
> > >
> > > I have a field name <field name ="company">A & K Inc</field>, which i
> > > cannot
> > > parse using XML to POST data to solr. When i search using A & K, i should
> > > be
> > > getting the exactly this field name.
> > >
> > > Please someone help me with this ASAP.
> > >
> > > Thanks,
> > > Ricky.
> > >
> >
> >
> >
> > --
> > Regards,
> > Shalin Shekhar Mangar.
> >
--
Alan Rykhus
PALS, A Program of the Minnesota State Colleges and Universities
(507)389-1975
alan.rykhus@mnsu.edu
Re: How Special Character '&' used in indexing
Posted by Ricky <ri...@gmail.com>.
I have tried sending the '&' instead of '&' like the following,
<field name ="company">A & K Inc</field>.
But i still get the same error ""entity reference name can not contain
character ' <position: START_TAG seen ...<fieldname = "company">A & ..
Please kindly reply ASAP.
Thanks,
Ricky
On Fri, May 9, 2008 at 3:48 AM, Shalin Shekhar Mangar <
shalinmangar@gmail.com> wrote:
> You need to XML encode special characters. Use & instead of &.
>
> On Fri, May 9, 2008 at 12:07 PM, Ricky Martin <ri...@gmail.com>
> wrote:
>
> > Hello,
> >
> > I have a field name <field name ="company">A & K Inc</field>, which i
> > cannot
> > parse using XML to POST data to solr. When i search using A & K, i should
> > be
> > getting the exactly this field name.
> >
> > Please someone help me with this ASAP.
> >
> > Thanks,
> > Ricky.
> >
>
>
>
> --
> Regards,
> Shalin Shekhar Mangar.
>
Re: How Special Character '&' used in indexing
Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
You need to XML encode special characters. Use & instead of &.
On Fri, May 9, 2008 at 12:07 PM, Ricky Martin <ri...@gmail.com>
wrote:
> Hello,
>
> I have a field name <field name ="company">A & K Inc</field>, which i
> cannot
> parse using XML to POST data to solr. When i search using A & K, i should
> be
> getting the exactly this field name.
>
> Please someone help me with this ASAP.
>
> Thanks,
> Ricky.
>
--
Regards,
Shalin Shekhar Mangar.