Re: Querying data based on field type

2016-02-18 Thread Binoy Dalal
My apologies. I thought you wanted to remove all the arr values.

On Thu, 18 Feb 2016, 13:55 Salman Ansari  wrote:

> Not sure if I am getting this but I am not interested in updating
> documents. I am interested in getting documents that has the field type of
> a specific field as array .
>
> Regards,
> Salman
>
> On Thu, Feb 18, 2016 at 11:13 AM, Binoy Dalal 
> wrote:
>
> > Take a look at atomic updates and remove regex.
> >
> >
> https://cwiki.apache.org/confluence/display/solr/Updating+Parts+of+Documents
> >
> > On Thu, 18 Feb 2016, 13:07 Salman Ansari 
> wrote:
> >
> > > Hi,
> > >
> > > Due to some mis-configuration issues, I have a field that has values as
> > > single string and an array of strings. Looks like there are some old
> > values
> > > that got indexed as an array of strings while anything new are single
> > > valued string. I have checked the configuration and multivalued for
> that
> > > field is set to false. What I want is to remove all the occurrences of
> > the
> > > field as an array (multi-valued) where it shows as  instead
> of
> > > . Is there a way to query the field so it returns only those
> > > documents that have field as an array and not as a single string?
> > >
> > > Appreciate your comments/feedback.
> > >
> > > Regards,
> > > Salman
> > >
> > --
> > Regards,
> > Binoy Dalal
> >
>
-- 
Regards,
Binoy Dalal


Re: Querying data based on field type

2016-02-18 Thread Salman Ansari
Not sure if I am getting this but I am not interested in updating
documents. I am interested in getting documents that has the field type of
a specific field as array .

Regards,
Salman

On Thu, Feb 18, 2016 at 11:13 AM, Binoy Dalal 
wrote:

> Take a look at atomic updates and remove regex.
>
> https://cwiki.apache.org/confluence/display/solr/Updating+Parts+of+Documents
>
> On Thu, 18 Feb 2016, 13:07 Salman Ansari  wrote:
>
> > Hi,
> >
> > Due to some mis-configuration issues, I have a field that has values as
> > single string and an array of strings. Looks like there are some old
> values
> > that got indexed as an array of strings while anything new are single
> > valued string. I have checked the configuration and multivalued for that
> > field is set to false. What I want is to remove all the occurrences of
> the
> > field as an array (multi-valued) where it shows as  instead of
> > . Is there a way to query the field so it returns only those
> > documents that have field as an array and not as a single string?
> >
> > Appreciate your comments/feedback.
> >
> > Regards,
> > Salman
> >
> --
> Regards,
> Binoy Dalal
>


Re: Querying data based on field type

2016-02-18 Thread Binoy Dalal
Take a look at atomic updates and remove regex.
https://cwiki.apache.org/confluence/display/solr/Updating+Parts+of+Documents

On Thu, 18 Feb 2016, 13:07 Salman Ansari  wrote:

> Hi,
>
> Due to some mis-configuration issues, I have a field that has values as
> single string and an array of strings. Looks like there are some old values
> that got indexed as an array of strings while anything new are single
> valued string. I have checked the configuration and multivalued for that
> field is set to false. What I want is to remove all the occurrences of the
> field as an array (multi-valued) where it shows as  instead of
> . Is there a way to query the field so it returns only those
> documents that have field as an array and not as a single string?
>
> Appreciate your comments/feedback.
>
> Regards,
> Salman
>
-- 
Regards,
Binoy Dalal


Querying data based on field type

2016-02-17 Thread Salman Ansari
Hi,

Due to some mis-configuration issues, I have a field that has values as
single string and an array of strings. Looks like there are some old values
that got indexed as an array of strings while anything new are single
valued string. I have checked the configuration and multivalued for that
field is set to false. What I want is to remove all the occurrences of the
field as an array (multi-valued) where it shows as  instead of
. Is there a way to query the field so it returns only those
documents that have field as an array and not as a single string?

Appreciate your comments/feedback.

Regards,
Salman