I want to return :

-    the field name_UK (if it exists)

-    Otherwise the name_FRA field
... into an alias field (itemDesc, created at query time).

There is no schema definition for itemDesc because, it is only a virtual field 
declared in fl= criteria. I don't understand while filter is applying to this 
field.

On Tue, Sep 9, 2014 at 17:44 AM, Erick Erickson 
<erickerick...@gmail.com<mailto:erickerick...@gmail.com>> wrote:

> I'm really confused about what you're trying to do here. What do you
> intend the syntax
> itemDesc:def(name_UK,name_FRA)
> to do?
>
> It's also really difficult to say much of anything unless we see the
> schema definition for "itemDesc" and sample input.
>
> Likely you're somehow applying an analysis chain that is truncating
> the input. Or it's also possible that you aren't indexing quite what
> you think you are.
>
> Best,
> Erick
>
> On Tue, Sep 9, 2014 at 4:36 AM, Pigeyre Romain 
> <romain.pige...@sopra.com<mailto:romain.pige...@sopra.com>> wrote:
> > Hi
> >
> > I'm trying to use a query with 
> > fl=name_UK,name_FRA,itemDesc:def(name_UK,name_FRA)
> > As you can see, the itemDesc field (builded by solr) is truncated :
> >
> > {
> >         "name_UK": "MEN S SUIT\n",
> >         "name_FRA": "24 RELAX 2 BTS ST GERMAIN TOILE FLAMMEE LIN ET SOIE",
> >         "itemDesc": "suit"
> >       }
> >
> > Do you have any idea to change it?
> >
> > Thanks.
> >
> > Regards,
> >
> > Romain


Reply via email to