Hi all. This issue will track the upcoming release of full-text search for the Wikipedias.
I have a primitive version working on my machine that does full-text search over all articles in 2017-03 English Wikipedia. I still have a lot to do, but the initial functionality is pretty promising. I'm planning to add it officially to the XOWA release sometime in the next few weeks.
I'm looking for testers who could do the following:
If you want to help out, here's what you'd have to do:
Anyway, if you have questions / comments, please add below. Otherwise, I'll keep this issue open until full-text search makes it into the official release.
Thanks.
I tested the full-text-search function on Windows 10 64 bit Intel Core i5-6600K @ 3.50GHz 16GB RAM.
I was using Simple Wikipedia and I get very fast search results. I searched "oldest", but it actually doesn't matter what I look for. I got Simple Wikipedia off the Download Central, I redownloaded it. The search build took me 2 minutes as far as I remember. There is not much to say about it because it works the way it should, you know. I still have to test it with other wikis. I believe it doesn't make a big difference. I could be wrong. Do I have to do this for the rest of the wikis in order for this to work? Or can I download it?
However, I hope I provided enough information.
I have two requests, can you add it next to "Search using Special:All Pages" or atleast somewhere noticeable? Also, can you make it so that you can see information like https://simple.wikipedia.org/w/index.php?search=castle&title=Special:Search&profile=default&fulltext=1&searchToken=b0krg4zxw24q2udauj6rv66v4, so you can see some text?
-I get random freezes (XOWA not responding). After a few seconds it's restored. Not sure who is the trigger.
-Here's some "error": http://image.prntscr.com/image/067da0b2d7234a00b2e1991ec2264bb1.png
I got it when I clicked on an result after using full-text-search. It's random. Or?
@Ope30 Thanks for testing! I'm running out the door now, but I'll quickly answer one:
Do I have to do this for the rest of the wikis in order for this to work? Or can I download it?
Nope. You shouldn't have to redownload anything. It should work with any Download Central wiki.
Next time, try restarting after rebuilding the search index. If that still doesn't work, let me know, and I'll investigate further.
I'll answer the rest later.
For everyone else: I goofed in yesterday's release. It included a version of Lucene that only works for Java 1.8. I want to give other users time to move to Java 1.8, so I can't force it on everyone yet.
I uploaded a new one for Java 1.7 here: https://github.com/gnosygnu/xowa/releases/tag/v4.4.2.1703. If you've built search indexes for your wiki, please download this version and rebuild them.
Sorry about that.
Nope. You shouldn't have to redownload anything. It should work with any Download Central wiki.
Ah. Okay, but I do have to build all the indexes for all the other wikis?
Next time, try restarting after rebuilding the search index. If that still doesn't work, let me know, and I'll investigate further.
Uhm, I think my comment wasn't as detailed as I expected, sorry. Ehm, I don't have any problems regarding building-indexes. What I meant by "download it" was to download the indexes separately. :P
I tested the full-text-search function on Windows 10 64 bit Intel Core i5-6600K @ 3.50GHz 16GB RAM.
Cool. Thanks for the machine specs!
I was using Simple Wikipedia and I get very fast search results. I searched "oldest", but it actually doesn't matter what I look for.
Yeah, the Lucene search index is pretty fast. It should handle any one word or combination of words you throw at it.
I got Simple Wikipedia off the Download Central, I redownloaded it.
Cool. Any existing Download Central wiki is viable for the index build
The search build took me 2 minutes as far as I remember.
Just as fast as my machine. :)
There is not much to say about it because it works the way it should, you know. I still have to test it with other wikis. I believe it doesn't make a big difference. I could be wrong. Do I have to do this for the rest of the wikis in order for this to work? Or can I download it?
Yeah, for now, you have to build the wikis manually on your side. It's still too early for me to upload anything to Download Central.
Also, please make sure you build the indexes with today's 4.4.3 release, not yesterday's 4.4.2 release. Today's release should also have better support for non-English languages.
I have two requests, can you add it next to "Search using Special:All Pages" or atleast somewhere noticeable?
Well, I'm planning to change the box to go directly to Special:XowaSearch and demote Special:AllPages to a choice off the main menu
Also, can you make it so that you can see information like https://simple.wikipedia.org/w/index.php?search=castle&title=Special:Search&profile=default&fulltext=1&searchToken=b0krg4zxw24q2udauj6rv66v4, so you can see some text?
It's sort of there in today's release already. If you do https://simple.wikipedia.org/wiki/Special:Search?query=castle , you'll get "castle" in the query box. You'll still have to hit enter though. I can make it run the search automatically for the next update.
-I get random freezes (XOWA not responding). After a few seconds it's restored. Not sure who is the trigger.
-Here's some "error": http://image.prntscr.com/image/067da0b2d7234a00b2e1991ec2264bb1.png
I got it when I clicked on an result after using full-text-search. It's random. Or?
Not sure. I haven't seen it yet. A few questions:
Ah. Okay, but I do have to build all the indexes for all the other wikis?
Ehm, I don't have any problems regarding building-indexes. What I meant by "download it" was to download the indexes separately. :P
Yeah, for now, the indexes will need to be built. It's still too early to incorporate them into Download Central as the format is still in flux (as shown by today's release). In about a month or two, the new Download Central wikis will have them as an option to downoad. Until then, anyone who wants to experiment with them can build it on their own. Hope that makes sense.
Thanks!
Yeah, for now, you have to build the wikis manually on your side. It's still too early for me to upload anything to Download Central.
Okay.
Well, I'm planning to change the box to go directly to Special:XowaSearch and demote Special:AllPages to a choice off the main menu
Okay. Let's see the outcome of that. =/
Also, please make sure you build the indexes with today's 4.4.3 release, not yesterday's 4.4.2 release. Today's release should also have better support for non-English languages.
It's sort of there in today's release already. If you do https://simple.wikipedia.org/wiki/Special:Search?query=castle , you'll get "castle" in the query box. You'll still have to hit enter though. I can make it run the search automatically for the next update.
I still have 4.4.1 1703, where do I get 4.4.3 from? And yeah, I agree, make it automatically!
Just a question, I did not know you can search images as well, would it be possible for you to add that function to the full-text-search function? I don't believe that's even possible.
Can you reproduce this error reliably
So, I found out that it was appearing because, if you search for "car" (or anything else) through 1000 max pages per wiki, and you immediately click on an result, you get the error. I tested and waited for the search to be complete, because it took me like 10 seconds through 1000 pages, and I did not get the error.
Yeah, for now, the indexes will need to be built. It's still too early to incorporate them into Download Central as the format is still in flux (as shown by today's release). In about a month or two, the new Download Central wikis will have them as an option to downoad. Until then, anyone who wants to experiment with them can build it on their own. Hope that makes sense.
Makes sense. I will try to build them in the next coming days, or I could just wait to download them, I don't know. By the way, I as well will try to download 2017-03 Wikipedia. I need the time. Just so you know.
Okay. Let's see the outcome of that. =/
Hmm... I take it you don't agree? Do you use Special:AllPages a lot? Or would you rather have another text box. Personally, I don't want to add a third, because it makes it cluttered. Also, Windows Explorer and Firefox have two boxes, but not necessarily three
I still have 4.4.1 1703, where do I get 4.4.3 from?
Ooops. Type. Meant v4.4.2. See: https://github.com/gnosygnu/xowa/releases/tag/v4.4.2.1703
Just a question, I did not know you can search images as well, would it be possible for you to add that function to the full-text-search function? I don't believe that's even possible.
Unfortunately, not really. You would need commons and even then, the search could be unsatisfying as there may not be enough keywords.
So, I found out that it was appearing because, if you search for "car" (or anything else) through 1000 max pages per wiki
Yeah, 1000 is too much. ;) I'll add paging in a future release, but 20 - 100 will probably be the recommended size
Makes sense. I will try to build them in the next coming days, or I could just wait to download them, I don't know. By the way, I as well will try to download 2017-03 Wikipedia. I need the time. Just so you know.
Sure, up to you! Just make sure you use 4.4.2 if you build any more. Let me know if you run across anything. Thanks!
I take it you don't agree? Do you use Special:AllPages a lot? Or would you rather have another text box. Personally, I don't want to add a third, because it makes it cluttered. Also, Windows Explorer and Firefox have two boxes, but not necessarily three
Can you let it there for me please?! Or atleast add a possible option to turn all three off/on? :(
Unfortunately, not really. You would need commons and even then, the search could be unsatisfying as there may not be enough keywords.
Damnit. I would have loved to see this. But okay!
Yeah, 1000 is too much. ;) I'll add paging in a future release, but 20 - 100 will probably be the recommended size
Agreed. 100 is the best you can get.
Sure, up to you! Just make sure you use 4.4.2 if you build any more. Let me know if you run across anything. Thanks!
I definitely will let you know.
Can you let it there for me please?! Or atleast add a possible option to turn all three off/on? :(
I'll take a look at it, but it's really easiest for me to leave two boxes (URL and AllPages / Search) then to make it three boxes (URL and AllPages and Search) with corresponding options
Another note. It looks like there will be yet another change to the search . It turns out Lucene 6.4 is more accurate out-of-box than Lucene 5.5. That means I may have to go back to Java 1.8.
I'll upload another build by the end of this week with hopefully a finalized format. In the meantime, if you're generating search indexes, please only generate them for a handful of wikis. The search index format is definitely going to be in flux for another release or two, so please keep in mind that any search index you generate will have to be regenerated again when you get the next version.
Sorry about the trouble. Thanks.
I'll take a look at it, but it's really easiest for me to leave two boxes (URL and AllPages / Search) then to make it three boxes (URL and AllPages and Search) with corresponding options
Alright.
Another note. It looks like there will be yet another change to the search . It turns out Lucene 6.4 is more accurate out-of-box than Lucene 5.5. That means I may have to go back to Java 1.8.
Sure. Do it!
I'll upload another build by the end of this week with hopefully a finalized format. In the meantime, if you're generating search indexes, please only generate them for a handful of wikis. The search index format is definitely going to be in flux for another release or two, so please keep in mind that any search index you generate will have to be regenerated again when you get the next version.
Roger that. I wanted to generate them for DE and EN only. To be honest, I don't need it for the rest.
Full-text search has been included in tonight's v4.5 release. For more information, see the following:
There will probably be more changes to full-text search in future versions, but they will get tracked under different issues. In the meantime, I'm going to close this issue out. Thanks.