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 Mukundaraman valakumaresan <mu...@8kmiles.com> on 2013/12/16 16:04:42 UTC
External File Field
Hi
Is there a way to find ,whether the External File Fields mentioned in the
schema.xml is being used or whether Solr reads the value of those external
fields.
I am not sure how to use an External field, can I request the value of an
External File Field in the field list or can I use in my custom function as
shown below:
http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,adjlocality<http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,property_price_max,property_price_min,lanorm(%22%22,luxury_amenities_c,10),adjlocality>
,custfunc(adjlocality).
I didn't get any output for the external fields in the queries that I
provide.
Thanks & Regards
Mukund
Re: External File Field
Posted by Ahmet Arslan <io...@yahoo.com>.
Can you send us your schema.xml file?
On Tuesday, December 17, 2013 9:02 AM, Mukundaraman valakumaresan <mu...@8kmiles.com> wrote:
Hi
http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,property_price_max,locality,property_price_min,field(adjlocality)&q=*:*<http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,property_price_max,locality,property_price_min,norm:pricenorm(1000,100000,property_price_median),field(adjlocality)&q=*:*>
I did it, it is giving me a message underfined field.
I have placed my files at F:\solr\example\solr\collection1\data where the
Solr data is maintained.
Is there a way to check whether the files are read or not?
Thanks & Regards
Mukund
On Mon, Dec 16, 2013 at 8:48 PM, Ahmet Arslan <io...@yahoo.com> wrote:
> Hi,
>
> You can request the value of the that field via fl=*,field(adjlocality)
>
> See more about it :
> https://cwiki.apache.org/confluence/display/solr/Working+with+External+Files+and+Processes
>
> Actually you can search it too with frange query parser. {!frange l=0
> u=0}field(adjlocality)
>
>
>
>
> On Monday, December 16, 2013 5:05 PM, Mukundaraman valakumaresan <
> mukund@8kmiles.com> wrote:
> Hi
>
> Is there a way to find ,whether the External File Fields mentioned in the
> schema.xml is being used or whether Solr reads the value of those external
> fields.
>
> I am not sure how to use an External field, can I request the value of an
> External File Field in the field list or can I use in my custom function as
> shown below:
>
>
> http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,adjlocality
> <
> http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,property_price_max,property_price_min,lanorm(%22%22,luxury_amenities_c,10),adjlocality
> >
> ,custfunc(adjlocality).
>
> I didn't get any output for the external fields in the queries that I
> provide.
>
> Thanks & Regards
> Mukund
>
Re: External File Field
Posted by Mukundaraman valakumaresan <mu...@8kmiles.com>.
Hi
it works, thanks a lot.
Regards
Mukund
On Tue, Dec 17, 2013 at 5:20 PM, Ahmet Arslan <io...@yahoo.com> wrote:
> Hi,
>
> I see that you defined fieldType correctly. However you need to a field of
> that type too.
>
> <field name="adjlocality" type="adjlocality" />
>
>
> Your file name should be external_adjlocality.txt
>
> With above configuration everything should work. Verify it by
> q=*:*&fl=*,field(adjlocality)
>
>
>
>
>
> On Tuesday, December 17, 2013 9:02 AM, Mukundaraman valakumaresan <
> mukund@8kmiles.com> wrote:
> Hi
>
>
> http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,property_price_max,locality,property_price_min,field(adjlocality)&q=*:*
> <
> http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,property_price_max,locality,property_price_min,norm:pricenorm(1000,100000,property_price_median),field(adjlocality)&q=*:*
> >
>
> I did it, it is giving me a message underfined field.
>
> I have placed my files at F:\solr\example\solr\collection1\data where the
> Solr data is maintained.
>
> Is there a way to check whether the files are read or not?
>
> Thanks & Regards
> Mukund
>
>
>
>
> On Mon, Dec 16, 2013 at 8:48 PM, Ahmet Arslan <io...@yahoo.com> wrote:
>
> > Hi,
> >
> > You can request the value of the that field via fl=*,field(adjlocality)
> >
> > See more about it :
> >
> https://cwiki.apache.org/confluence/display/solr/Working+with+External+Files+and+Processes
> >
> > Actually you can search it too with frange query parser. {!frange l=0
> > u=0}field(adjlocality)
> >
> >
> >
> >
> > On Monday, December 16, 2013 5:05 PM, Mukundaraman valakumaresan <
> > mukund@8kmiles.com> wrote:
> > Hi
> >
> > Is there a way to find ,whether the External File Fields mentioned in the
> > schema.xml is being used or whether Solr reads the value of those
> external
> > fields.
> >
> > I am not sure how to use an External field, can I request the value of an
> > External File Field in the field list or can I use in my custom function
> as
> > shown below:
> >
> >
> >
> http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,adjlocality
> > <
> >
> http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,property_price_max,property_price_min,lanorm(%22%22,luxury_amenities_c,10),adjlocality
> > >
> > ,custfunc(adjlocality).
> >
> > I didn't get any output for the external fields in the queries that I
> > provide.
> >
> > Thanks & Regards
> > Mukund
> >
>
Re: External File Field
Posted by Ahmet Arslan <io...@yahoo.com>.
Hi,
I see that you defined fieldType correctly. However you need to a field of that type too.
<field name="adjlocality" type="adjlocality" />
Your file name should be external_adjlocality.txt
With above configuration everything should work. Verify it by q=*:*&fl=*,field(adjlocality)
On Tuesday, December 17, 2013 9:02 AM, Mukundaraman valakumaresan <mu...@8kmiles.com> wrote:
Hi
http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,property_price_max,locality,property_price_min,field(adjlocality)&q=*:*<http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,property_price_max,locality,property_price_min,norm:pricenorm(1000,100000,property_price_median),field(adjlocality)&q=*:*>
I did it, it is giving me a message underfined field.
I have placed my files at F:\solr\example\solr\collection1\data where the
Solr data is maintained.
Is there a way to check whether the files are read or not?
Thanks & Regards
Mukund
On Mon, Dec 16, 2013 at 8:48 PM, Ahmet Arslan <io...@yahoo.com> wrote:
> Hi,
>
> You can request the value of the that field via fl=*,field(adjlocality)
>
> See more about it :
> https://cwiki.apache.org/confluence/display/solr/Working+with+External+Files+and+Processes
>
> Actually you can search it too with frange query parser. {!frange l=0
> u=0}field(adjlocality)
>
>
>
>
> On Monday, December 16, 2013 5:05 PM, Mukundaraman valakumaresan <
> mukund@8kmiles.com> wrote:
> Hi
>
> Is there a way to find ,whether the External File Fields mentioned in the
> schema.xml is being used or whether Solr reads the value of those external
> fields.
>
> I am not sure how to use an External field, can I request the value of an
> External File Field in the field list or can I use in my custom function as
> shown below:
>
>
> http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,adjlocality
> <
> http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,property_price_max,property_price_min,lanorm(%22%22,luxury_amenities_c,10),adjlocality
> >
> ,custfunc(adjlocality).
>
> I didn't get any output for the external fields in the queries that I
> provide.
>
> Thanks & Regards
> Mukund
>
Re: External File Field
Posted by Mukundaraman valakumaresan <mu...@8kmiles.com>.
Hi
http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,property_price_max,locality,property_price_min,field(adjlocality)&q=*:*<http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,property_price_max,locality,property_price_min,norm:pricenorm(1000,100000,property_price_median),field(adjlocality)&q=*:*>
I did it, it is giving me a message underfined field.
I have placed my files at F:\solr\example\solr\collection1\data where the
Solr data is maintained.
Is there a way to check whether the files are read or not?
Thanks & Regards
Mukund
On Mon, Dec 16, 2013 at 8:48 PM, Ahmet Arslan <io...@yahoo.com> wrote:
> Hi,
>
> You can request the value of the that field via fl=*,field(adjlocality)
>
> See more about it :
> https://cwiki.apache.org/confluence/display/solr/Working+with+External+Files+and+Processes
>
> Actually you can search it too with frange query parser. {!frange l=0
> u=0}field(adjlocality)
>
>
>
>
> On Monday, December 16, 2013 5:05 PM, Mukundaraman valakumaresan <
> mukund@8kmiles.com> wrote:
> Hi
>
> Is there a way to find ,whether the External File Fields mentioned in the
> schema.xml is being used or whether Solr reads the value of those external
> fields.
>
> I am not sure how to use an External field, can I request the value of an
> External File Field in the field list or can I use in my custom function as
> shown below:
>
>
> http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,adjlocality
> <
> http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,property_price_max,property_price_min,lanorm(%22%22,luxury_amenities_c,10),adjlocality
> >
> ,custfunc(adjlocality).
>
> I didn't get any output for the external fields in the queries that I
> provide.
>
> Thanks & Regards
> Mukund
>
Re: External File Field
Posted by Ahmet Arslan <io...@yahoo.com>.
Hi,
You can request the value of the that field via fl=*,field(adjlocality)
See more about it : https://cwiki.apache.org/confluence/display/solr/Working+with+External+Files+and+Processes
Actually you can search it too with frange query parser. {!frange l=0 u=0}field(adjlocality)
On Monday, December 16, 2013 5:05 PM, Mukundaraman valakumaresan <mu...@8kmiles.com> wrote:
Hi
Is there a way to find ,whether the External File Fields mentioned in the
schema.xml is being used or whether Solr reads the value of those external
fields.
I am not sure how to use an External field, can I request the value of an
External File Field in the field list or can I use in my custom function as
shown below:
http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,adjlocality<http://localhost:8983/solr/collection1/select?wt=json&omitHeader=on&indent=true&defType=edismax&fl=id,property_price_max,property_price_min,lanorm(%22%22,luxury_amenities_c,10),adjlocality>
,custfunc(adjlocality).
I didn't get any output for the external fields in the queries that I
provide.
Thanks & Regards
Mukund