We don't currently support ElasticSearch 2.0. I'm collecting issues we've seen with it in T9893.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Dec 3 2015
@ru31337, that issue isn't related to this one and isn't "wontfix". Please see Contributing Bug Reports for instructions on how to report bugs. Choosing an existing similar task, changing it to "wontfix" and dumping your issue into it won't get it fixed.
Dec 2 2015
I just upgraded Phabricator, now the version is,
Your install is fairly out of date. See https://secure.phabricator.com/book/phabcontrib/article/bug_reports/#common-fixes
Phabricator Version d878f215617bb5a97bd5ea4145566308cb68d7e3
What version of Phabricator are you running.. See Contributing Bug Reports
Nov 13 2015
Nov 9 2015
Index _status in 2.0 replaced _stats https://www.elastic.co/guide/en/elasticsearch/reference/2.0/indices-status.html
Nov 2 2015
In T9670#142765, @epriestley wrote:Thanks for testing the patch, should be in HEAD now. Let us know if you run into anything else.
Not sure what @tycho.tatitscheff ran into.
@epriestley i think I didn't delete index first.
Just bin/search index --all.
Thanks for testing the patch, should be in HEAD now. Let us know if you run into anything else.
@epriestley/@tycho.tatitscheff: We managed to test D14370 now, and it totally fixes our problem!
I patched with D14370 and still get an issue. I can retry but I pretty sure I did think corectly.
In T9670#142547, @tycho.tatitscheff wrote:I tested and i does not fix !
Well, I didn't move to elastic 2.0 but restarting elasticsearch, reindexing rerestarting and reruning plugin doesn't leave me the same error.
Oct 31 2015
In T9670#142544, @epriestley wrote:D14370 likely fixes this, although I don't have ElasticSearch 2.0 locally and haven't tested it. I'd guess this will give you a clean bill of health:
- Apply the patch;
- run bin/search index --all to rebuild all indexes;
- run the ElasticSearch tool again.
Can you let me know if that works?
Oct 30 2015
I tested and i does not fix !
Oh, I think I misremembered and it does foreground by default. You can use --background to improve performance, and monitor from /daemon/.
Note that index --all queues stuff into the background, so you may need to wait a while before it finishes. You can use --foreground (slower) or monitor progress from /daemon/ in the web UI.
D14370 likely fixes this, although I don't have ElasticSearch 2.0 locally and haven't tested it. I'd guess this will give you a clean bill of health:
Oct 29 2015
After a closer look there seem to be quite a lot of inconsistencies for the different .when fields.
Uhm I tested the same last month when 2.0 was still beta then conclude that phabricator only supported 1.x.
I will follow the resolution of this.
Oct 7 2015
Sep 23 2015
It seems that this is not limited to Maniphest, it applies to all search documents.
Aug 26 2015
I applied the following change locally. I'm not convinced that it is the most correct solution, but it seems to have worked for our install:
Aug 17 2015
Comparing the mappings before and after (with curl 'http://localhost:9200/phabricator/_mappings?pretty=true'):
I've made some small progress here.
Jul 23 2015
Jul 8 2015
Jun 18 2015
May 28 2015
I set this up recently and can probably flesh out some documentation.
Can you tell me the configuration setup that you guys are using:
OS, core#, memory (size, speed), SSD, php, mysql?
php -v
PHP 5.5.9-1ubuntu4.7 (cli) (built: Mar 16 2015 20:47:39)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend TechnologiesMay 25 2015
I don't know if it's worth noting, but Ubuntu 10.04 was end of life'd last month (it's 5 years old). What versions of PHP/MySQL are you running on it?
2 minute delays between prints.
Maybe an incorrect assessment, but I see there is a direct relationship to the my.conf vs how much mem/swap is used once I start phd; but always max CPU and obviously this impacts severely apache browsing and conduit api response
Where are the two-second delays occurring? Everything in that trace looks like it happens in no more than a few milliseconds.
git pull
remote: Counting objects: 19, done. remote: Compressing objects: 100% (19/19), done. remote: Total 19 (delta 15), reused 4 (delta 0), pack-reused 0 Unpacking objects: 100% (19/19), done. From git://github.com/facebook/libphutil 4e0febf..672c0f7 master -> origin/master Updating 4e0febf..672c0f7 Fast-forward .arcconfig | 1 - src/daemon/PhutilDaemon.php | 5 +++-- src/daemon/PhutilDaemonHandle.php | 7 +++++-- src/future/exec/CommandException.php | 2 +- src/moduleutils/PhutilLibraryMapBuilder.php | 4 ++-- src/serviceprofiler/PhutilServiceProfiler.php | 4 ++-- 6 files changed, 13 insertions(+), 10 deletions(-)
Can you update libphutil and retry that? The duration printouts are bugged until rPHU65819efa.
KiB Mem: 16120708 total, 15954548 used, 166160 free, 50420 buffers KiB Swap: 16457724 total, 1017324 used, 15440400 free. 2086480 cached Mem
Can you run bin/phd debug taskmaster for a minute or so and show me the output?
I did the following:
/bin/phd stop
> bin/phd status Log Daemon Host Overseer Started Class Arguments 229 24793:p2icsv localhost 24793 May 25 2015, 6:30:38 AM PhabricatorRepositoryPullLocalDaemon 230 24793:gxho6u localhost 24793 May 25 2015, 6:30:38 AM PhabricatorTriggerDaemon 231 24793:2pttlj localhost 24793 May 25 2015, 6:30:38 AM PhabricatorTaskmasterDaemon 232 24793:ncviya localhost 24793 May 25 2015, 6:30:38 AM PhabricatorTaskmasterDaemon 233 24793:hqcy3p localhost 24793 May 25 2015, 6:30:38 AM PhabricatorTaskmasterDaemon 234 24793:yrrdmd localhost 24793 May 25 2015, 6:30:38 AM PhabricatorTaskmasterDaemon
These numbers are wildly out of line with expectations. For comparison, I just ran a similar workload on this machine:
May 12 2015
@epriestley , so is their a way to provide special configurartion ? Can you give me some basic hints ?
Apr 17 2015
Apr 16 2015
Apr 15 2015
Apr 14 2015
Mar 13 2015
Jan 8 2015
just run
./bin/search init
first.
This will create the needed elasticsearch index.
Thank you for your answer. But I met this error message.
after "search index --all"
[HTTP/404] Not Found
{"error":"IndexMissingException[[phabricator] missing]","status":404}Is it need more configuration for this?
Is there a temporary way to resolve this issue? ( Just only for wiki search )
Dec 22 2014
Presuming resolved by D10955, yell if I missed something or there's some followup.
Closed by commit rPc953c0fedc17.
Dec 18 2014
Yeah, this is specific to ElasticSearch -- exact phrase search works on this install with the MySQL backend T6747.
Dec 4 2014
One way of doing this is by adjusting the mapping for the elasticsearch index (actually way more powerful than a wildcard search).
I currently switched to the mapping below (added as a template expecting the index to be named 'phabricator' and with an english language setting).
Feel free to change the min/max ngrams setting (e.g. 4 instead of 3 letter ngrams) if you get too many / few results.
If you like to switch to another language the docs to do so are here: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-lang-analyzer.html
For it to take effect you have to delete the index and then reindex all objects (bin/index --all).
Nov 15 2014
(I would like this tooooo)