Skip to content

adding suports for where table.field === 'query'::simple::text[]::boost(2) #46

@Pandaaaa906

Description

@Pandaaaa906

What feature are you requesting?

i want to perform boost when searching

select
from table
where table.field === 'query'::simple::text[]::boost(2)

Why are you requesting this feature?

when i do

stmt.where(search.term(Table.field, 'query', tokenizer='simple', boost=2))

the sql will get

...
where table.field === 'query'::simple::boost(2)

it will thow somethiing like

ERROR:  cannot cast type pdb.simple to pdb.boost

it sure i can do something like

search.term(
Table.field,
Cast(search.PDBCast('query', "simple"), ARRAY(Text)),
boost=2.0
)

so i wonder if it could support directly

What is your proposed implementation for this feature?

No response

Metadata

Metadata

Assignees

Labels

featureNew feature or requestpriority-mediumMedium priority issueuser-requestThis issue was directly requested by a user

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions