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 Tirthankar Chatterjee <tc...@commvault.com> on 2011/09/09 15:59:57 UTC
Alias name for a index field
Hi,
Is there a way that we can give an alias name for a field so that the schema is not required to change.
Use Case: We defined the schema with a field called "conv" (basically to store conversation of an email)
There are users who wants this to be used as "subject"
One Solution: Use copy field but that definitely takes some resource, instead can we have something like an alias name, so a field can have multiple alias names which different users from geographical regions can use for doing fielded search.
Let us know what you think....or if a JIRA already exists.
Thanks,
Tirthankar
******************Legal Disclaimer***************************
"This communication may contain confidential and privileged
material for the sole use of the intended recipient. Any
unauthorized review, use or distribution by others is strictly
prohibited. If you have received the message in error, please
advise the sender by reply email and delete the message. Thank
you."
*********************************************************
RE: Alias name for a index field
Posted by Tirthankar Chatterjee <tc...@commvault.com>.
We are using fielded query using EDISMAX which is passed into the q parameter.
-----Original Message-----
From: Erik Hatcher [mailto:erik.hatcher@gmail.com]
Sent: Friday, September 09, 2011 10:21 AM
To: solr-user@lucene.apache.org
Subject: Re: Alias name for a index field
How are you doing fielded search currently? End users using the "lucene" query parser? Or using dismax/qf?
I'm just curious to drill into your needs here exactly in terms of request/response and whether a simple application layer handling of the alias need would suffice or this is something best handled in Solr.
Erik
On Sep 9, 2011, at 09:59 , Tirthankar Chatterjee wrote:
> Hi,
> Is there a way that we can give an alias name for a field so that the schema is not required to change.
>
> Use Case: We defined the schema with a field called "conv" (basically
> to store conversation of an email) There are users who wants this to be used as "subject"
>
> One Solution: Use copy field but that definitely takes some resource, instead can we have something like an alias name, so a field can have multiple alias names which different users from geographical regions can use for doing fielded search.
>
> Let us know what you think....or if a JIRA already exists.
>
> Thanks,
> Tirthankar
>
>
> ******************Legal Disclaimer***************************
> "This communication may contain confidential and privileged material
> for the sole use of the intended recipient. Any unauthorized review,
> use or distribution by others is strictly prohibited. If you have
> received the message in error, please advise the sender by reply email
> and delete the message. Thank you."
> *********************************************************
Re: Alias name for a index field
Posted by Erik Hatcher <er...@gmail.com>.
How are you doing fielded search currently? End users using the "lucene" query parser? Or using dismax/qf?
I'm just curious to drill into your needs here exactly in terms of request/response and whether a simple application layer handling of the alias need would suffice or this is something best handled in Solr.
Erik
On Sep 9, 2011, at 09:59 , Tirthankar Chatterjee wrote:
> Hi,
> Is there a way that we can give an alias name for a field so that the schema is not required to change.
>
> Use Case: We defined the schema with a field called "conv" (basically to store conversation of an email)
> There are users who wants this to be used as "subject"
>
> One Solution: Use copy field but that definitely takes some resource, instead can we have something like an alias name, so a field can have multiple alias names which different users from geographical regions can use for doing fielded search.
>
> Let us know what you think....or if a JIRA already exists.
>
> Thanks,
> Tirthankar
>
>
> ******************Legal Disclaimer***************************
> "This communication may contain confidential and privileged
> material for the sole use of the intended recipient. Any
> unauthorized review, use or distribution by others is strictly
> prohibited. If you have received the message in error, please
> advise the sender by reply email and delete the message. Thank
> you."
> *********************************************************
Re: Alias name for a index field
Posted by da...@ontrenet.com.
See http://wiki.apache.org/solr/FieldAliasesAndGlobsInParams
On Fri, 9 Sep 2011 09:59:57 -0400, Tirthankar Chatterjee
<tc...@commvault.com> wrote:
> Hi,
> Is there a way that we can give an alias name for a field so that the
> schema is not required to change.
>
> Use Case: We defined the schema with a field called "conv" (basically to
> store conversation of an email)
> There are users who wants this to be used as "subject"
>
> One Solution: Use copy field but that definitely takes some resource,
> instead can we have something like an alias name, so a field can have
> multiple alias names which different users from geographical regions can
> use for doing fielded search.
>
> Let us know what you think....or if a JIRA already exists.
>
> Thanks,
> Tirthankar
>
>
> ******************Legal Disclaimer***************************
> "This communication may contain confidential and privileged
> material for the sole use of the intended recipient. Any
> unauthorized review, use or distribution by others is strictly
> prohibited. If you have received the message in error, please
> advise the sender by reply email and delete the message. Thank
> you."
> *********************************************************