Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index_search_whoosh.md 中,parse的问题 #41

Open
lxgend opened this issue Jan 12, 2020 · 0 comments
Open

index_search_whoosh.md 中,parse的问题 #41

lxgend opened this issue Jan 12, 2020 · 0 comments

Comments

@lxgend
Copy link

lxgend commented Jan 12, 2020

from whoosh.qparser import QueryParser
with ix.searcher() as searcher:
    query = QueryParser("content",ix.schema).parse("second")
    result = searcher.search(query)
    results[0]

其中parse是否也可以先分词呢

@lxgend lxgend changed the title index_search_whoosh.md 中parse("second") index_search_whoosh.md 中,parse的问题 Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant