Skip to content

Empty Data on Whooshee_query even after calling reindex() #57

Description

@highoncarbs

@bkabrda Hi , I'm adding whooshee to an existing application. I tried calling whooshee.reindex() , but it returns empty data .

Here's my route

@bp.route('/search/<query>', methods=['GET'])
def search_product(query):
    
    data_schema = FinishedGoodsSchema(many=True)
    
    results = FinishedGoods.query.whooshee_search(query').order_by(FinishedGoods.id.desc())
    print(results)
    json_data = data_schema.dump(results)
    return jsonify(json_data)

Here's what the SQL prints out to ( only the last part )

 size_master_3.id = size_goods_child_1.size_id) ON finished_goods_child_1.id 
= size_goods_child_1.goods_id
WHERE null ORDER BY finished_goods.id DESC

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions