Another update.
I installed flarum to another test server, a phisical machine I own, having:
- OS Ubuntu 16.04 64 bit
- 8 GB RAM
- Apache: 2.4.18
- PHP: 7.0.8-0ubuntu0.16.04.2
- MySQL: 5.7.15-0ubuntu0.16.04.1
- flarum: Beta-5 with bundled extensions
I imported here the whole content of my current SMF2 forum, flawlessly.
I run the usual test seraches, and in short, search is broken as it is, sorry.
Some details:
- exactly as it happens on my virtual server, where I have done my testing so far, also in this new server I have most (not all) of the searches failing with error 500.
- some searches are successful (e.g. "spacex" or "Nespoli", all single words)
- some searches report no results found but i know I have many (hundreds) posts containing those words (e.g. "msl", just 3 letters, or "sts-135", this one has a dash)
- most of the searches fail with error 500 (e.g. "space shuttle" - this ones have two words)
- I perform all my tests using the search function from the "home page", to be sure to include all available posts.
As said before, if I work with smaller imports, substets of only 10k posts, everything is fine.
If I test a full import, ~18,000 discussion and ~260,000 posts, searching is useless.
I realise I repeate myself every second day, but this is because I am trying my best to nail down and understand what goes onnhere. At the moment I have not much success, because I know too little (nothing actually) about the inner working of flarum.
Unfortunately, as of today, this behavior is a total showstopper: I would not migrate to flarum like this.
I know the stable release is not happening tomorrow and there are other beta and testing coming, but i think this behaviour, now repeating itself in two environments both compliant with flarum minimum requirements, with just ubuntu vanilla provided packets (apache2, php mysql), is making me believe I found a potential major bug.
It's clear that with small dataset there is no issue at alll (or so it looks), but what happens if somebody ports big forums with millions of posts?
I think this is a potentally very bad situation that requires you guys @luceos, @Toby and others from the core dev team a serius investigation, setting up a big test database, a real case of the outside world environment where flarum will have to play and compete.
I love flarum and I would like to help. Can anybody give me a push in the right direction, pointing me to:
- what I can read to understand the part of Laravel (Illuminate?) in charge of the database management?
- which files in flarum core can I read to understand how you guys are setting up a search?
- can you give some hints about which queries are performed by flarum every time a user starts a search?
- is there a minimum number of letters below which no search is performed?
- are symbols such as points, dashes, hyphens problematic for the search engine?
I hope somebody from the core team finds the time to answer these questions, then I can try to find out more myself without knocking on everybody's door for a few days ?