sphinx

Does runtime Sphinx need the conf file?

戏子无情 提交于 2019-12-25 14:20:53
问题 If I create run my conf file on my index can Sphinx search then run w/o the conf file or associated wordforms for user search or are those files still needed for reference? My understanding so far is that when you process the index with rotate the .idx itself contains all that information needed? Basically trying to release production version of the search and not expose the config/wordforms on the server. 回答1: You will need the config file on the server, it contains some important stuff.

Compare strings of text between two tables in a database or locally

China☆狼群 提交于 2019-12-25 08:42:17
问题 Edit : SQL doesn't work for this. I just found out about Solr/Sphinx and it seems like the right tool for this problem, so if you know Solr or Sphinx I'm eager to hear from you. Basically, I have a .tsv with patent info and a .csv with product names. I need to match each row of the patents column against the product names and extract the occurrences in a new .csv column. You can scroll down and see the example at the end. Original question: SQL newbie here so bear with me :). I can't figure

Documents with the different attributes sets in Sphinx and Solr

给你一囗甜甜゛ 提交于 2019-12-25 04:58:13
问题 Is this is are possible to have indexed documents with the different set of the attributes. For example: There is some amount of the documents with the attr1,attr2, attr3 and soe amount of the documents with the attr4, attr5, attr6 ? Can all of this documents be included in the one index without predefining all possible attributes from both types ? 回答1: yes, you can use dynamic fields is Solr for this purpose. 回答2: With Sphinx you may use json fields (sql_attr_json) where you will save your

SPHINX SEARCH: Does searchd has to run as a service to make it work with PHP?

拥有回忆 提交于 2019-12-25 04:55:22
问题 I've been working with this all day. But don't get it to work. I can search through CMD and get results on my indexed tables but I have problems trying to understand the sphinxapi for php, i don't even now fully how to write a query and get the results can someone help me to see if this things work. HOW DO WE WRITE A PHP QUERY FOR SPHINX DATABASE = searchtest TABLE = documents overlook of my sphinx.conf file type = mysql sql_host = localhost sql_user = root sql_pass = sqlpass sql_db =

fulltext search with mysql FT or Sphinx

雨燕双飞 提交于 2019-12-25 02:23:50
问题 I have read many articles about Sphinx or Solr or MySQL FT. I have a table with over 1 milion products and need to make an fulltext search and get results under 1 second ... . Does anyone has any experience with those kind of fast search? As clint language I am using PHP. As capacity I have debian5 8GB ram 4 core cpu's. Thanks Nik 回答1: We've made some Sphinx performance measurements that are described here http://www.ivinco.com/blog/plain-rt-and-mixed-indexes-performance-comparison/ As it can

Thinking Sphinx and searching multiple models

旧城冷巷雨未停 提交于 2019-12-25 02:22:32
问题 I'm looking for a way to perform a search against multiple models (see this post), and got a couple of answers saying that Thinking Sphinx would be a good match for this kind of thing. Indeed, it looks sweet, and it seems the application-wide search capability ( ThinkingSphinx.search ) is close to what I want. But the docs state this will return various kinds of model objects, depending on where a match was found. I have a models somewhat like this: Employee Company Municipality County Where

Does Solr have an equivalent of “strict order operator” that Sphinx has?

别来无恙 提交于 2019-12-25 01:16:25
问题 I'm choosing between Solr and Sphinx. Sphinx doc page has a section called "5.3. Extended query syntax" which describes the following search parameters (among others) : strict order operator (example: aaa << bbb << ccc) - NEAR, generalized proximity operator (example: hello NEAR/3 world NEAR/4 "my test") - search according to distance between words SENTENCE/PARAGRAPH (example: "Bill Gates" PARAGRAPH "Steve Jobs") - search inside a sentence/paragraph Does Solr have any similar functionality?

Sphinx - Exact match!

我的梦境 提交于 2019-12-24 20:22:22
问题 i have another question! I have an index with SPH_MATCH_ALL SPH_RANK_SPH04 and when i search for the word "ipad" the word "dissIPADor" is comming before the word IPAD alone, how can i make 'ipad' by itself, more relevant than "dissIPADor" ? 回答1: check that you are using version 2.0.2 or above of sphinx. Version 2.0.1 has a bug in it that doesn't bring single words to the top even though they are an exact match. If you have stemming set up for your morphology in that index, consider removing

Python应用程序的最佳项目结构是什么? [关闭]

末鹿安然 提交于 2019-12-24 18:18:16
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 想象一下,您想用Python开发一个平凡的最终用户桌面(非Web)应用程序。 构造项目文件夹层次结构的最佳方法是什么? 理想的功能是易于维护,IDE友好,适用于源代码控制分支/合并以及易于生成安装软件包。 尤其是: 您将源放在哪里? 您将应用程序启动脚本放在哪里? 您将IDE项目放在哪里? 您将单元/验收测试放在哪里? 您将非Python数据(例如配置文件)放在哪里? 您将pyd / so二进制扩展模块的非Python源代码(例如C ++)放在哪里? #1楼 没什么大不了的。 令您快乐的一切都会起作用。 没有很多愚蠢的规则,因为Python项目可以很简单。 /scripts 或 /bin 用于那种命令行界面 /tests 进行测试 /lib 用于您的C语言库 /doc 获取大多数文档 /apidoc 用于Epydoc生成的API文档。 顶级目录可以包含自述文件,配置文件和其他内容。 艰难的选择是是否使用 /src 树。 像Java或C一样,Python在 /src , /lib 和 /bin 之间没有区别。 由于某些人认为顶级 /src 目录没有意义,因此顶级目录可以是应用程序的顶级体系结构。 /foo /bar /baz 我建议将所有这些都放在“我的产品名称”目录下。 因此,如果您正在编写一个名为 quux

MySql Full text or Sphinx or Lucene or anything else?

末鹿安然 提交于 2019-12-24 15:39:15
问题 I am currently using MySql and have a few tables which i need to perform boolean search on. Given the fact my tables are Innodb type, I found out one of the better ways to do this is to use Sphinx or Lucene. I have a doubt in using these, my queries are of the following format, Select count(*) as cnt, DATE_FORMAT(CONVERT_TZ(wrdTrk.createdOnGMTDate,'+00:00',:zone),'%Y-%m-%d') as dat from t_twitter_tracking wrdTrk where wrdTrk.word like (:word) and wrdTrk.createdOnGMTDate between :stDate and