Stéphane Klein | 3 Nov 10:03
Gravatar

Is it possible to create a xappy field with actions : INDEX_FREETEXT and COLLAPSE ?

Hi,

this is my short question, is it possible to create a xappy field with
actions : INDEX_FREETEXT and COLLAPSE

something like this :

    conn.add_field_action(
        'laboratory_name',
        xappy.FieldActions.INDEX_FREETEXT ||
xappy.FieldActions.COLLAPSE,
        weight=10,
        language=lang,
        spell=True
    )

I've looking in xappy documentation and source code, I found nothing
about this subject.

Thanks for your help,
Stephane

--

-- 
You received this message because you are subscribed to the Google Groups "xappy-discuss" group.
To post to this group, send email to xappy-discuss@...
To unsubscribe from this group, send email to xappy-discuss+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/xappy-discuss?hl=en.

Richard Boulton | 20 Dec 15:30
Gravatar

Re: Is it possible to create a xappy field with actions : INDEX_FREETEXT and COLLAPSE ?

On 3 November 2010 09:03, Stéphane Klein <stephane@...> wrote:
> Hi,
>
> this is my short question, is it possible to create a xappy field with
> actions : INDEX_FREETEXT and COLLAPSE

This should be possible...

> something like this :
>
>    conn.add_field_action(
>        'laboratory_name',
>        xappy.FieldActions.INDEX_FREETEXT ||
> xappy.FieldActions.COLLAPSE,
>        weight=10,
>        language=lang,
>        spell=True
>    )

... but you'd do this by adding two separate actions to the field:

conn.add_field_action(
  'laboratory_name',
  xappy.FieldActions.INDEX_FREETEXT,
  weight=10,
  langage=lang,
  spell=True)
conn.add_field_action(
  'laboratory_name',
  xappy.FieldActions.COLLAPSE)
(Continue reading)


Gmane