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

已查看 8 次
跳至第一个未读帖子

Stéphane Klein

未读,
2010年11月3日 05:03:062010/11/3
收件人 xappy-discuss、ric...@lemurconsulting.com
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

Richard Boulton

未读,
2010年12月20日 09:30:422010/12/20
收件人 xappy-...@googlegroups.com
On 3 November 2010 09:03, Stéphane Klein <step...@harobed.org> 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)

(Untested code, but the above is how it's intended to be done.)

--
Celestial Navigation Limited, incorporated in England & Wales
(registration number 06978117), registered office address: 58
Kingsway, Duxford, Cambridgeshire, CB224QN, UK.

回复全部
回复作者
转发
0 个新帖子