为您找到相关结果472,165个
详解Java的Hibernate框架中的搜索工具的运用_java_脚本之家
.onFields("title", "content").matching(query.getKeyword()) // .matching("*" + query.getKeyword() + "*") .createQuery(); FullTextQuery hibernateQuery = fullTextSession.createFullTextQuery( luceneQuery, Show.class); return hibernateQuery.list();note...
www.jb51.net/article/756...htm 2024-10-7
python用ConfigObj读写配置文件的实现代码_python_脚本之家
config['keyword1'] = value1 config['keyword2'] = value2 # config['section1'] = {} config['section1']['keyword3'] = value3 config['section1']['keyword4'] = value4 # section2 = { 'keyword5': value5, 'keyword6': value6, ...
www.jb51.net/article/344...htm 2024-10-4
Python利用Beautiful Soup模块搜索内容详解_python_脚本之家
customsoup = BeautifulSoup(customattr,'lxml') customsoup.find(data-custom="custom") # SyntaxError: keyword can't be an expression这个时候使用 attrs 属性值来传递一个字典类型作为参数进行搜索:1 2 using_attrs = customsoup.find(attrs={'data-custom':'custom'}) print using_attrs基于...
www.jb51.net/article/1097...htm 2024-10-1
Vue实现搜索结果高亮显示关键字_vue.js_脚本之家
var mainWord = this.$route.params.keyword; if (this.search_text !== '' && this.search_text !== this.$route.params.keyword) { mainWord = this.search_text; } this.search_text = mainWord; this.search_res = (await getSearchData(this.search_text)).obj.results; console.log(this.searc...
www.jb51.net/article/1621...htm 2024-9-29
Elasticsearch之基本查询及组合查询操作示例_其它综合_脚本之家
"type":"keyword", }, "desc":{ "type":"text" }, "comments":{ "type":"integer" }, "add_time":{ "type":"date", "format":"yyy-MM-dd" } } } } #测试数据 POST lago/job { "title":"python django 开发工程师", "company_name":"美团科技有限公司", "desc":"对django熟悉,掌握my...
www.jb51.net/article/2451...htm 2024-10-6