How to get the complete list of full-text-index

Tuesday, 12 January 2016 · 7 messages · last reply 13 Jan 2016
K
kleist12 Jan 2016 21:31 #
Hi all, hi Christian is there any way to get the complete list of the full-text-index? With the GUI I only get the first part: - Names: - Size: 5 MB - Entries: 23401 und 22662x der 20595x .... Thanks in advance. Best regards, Günter
CG
Christian Grün12 Jan 2016 21:39 #
Quoted text · kleist · 1 line
> is there any way to get the complete list of the full-text-index?
Yes there is [1]. Check out all other functions in the Full-Text Module; they may help you in various other situations. Cheers, Christian [1] http://docs.basex.org/wiki/Full-Text_Module#ft:tokens With the GUI I only get the first part:
Quoted text · kleist · 12 lines
> > - Names: > - Size: 5 MB > - Entries: 23401 > und 22662x > der 20595x > .... > > Thanks in advance. > > Best regards, > Günter
K
kleist12 Jan 2016 21:49 #
Perhaps I don't get it, that command gives me the number of a specific term? But I need the list of all terms (with number of occurences). Best, Günter
Quoted text · Christian Grün · 27 lines
> Am 12.01.2016 um 21:39 schrieb Christian Grün <christian.gruen at gmail.com>: > >> is there any way to get the complete list of the full-text-index? > > Yes there is [1]. Check out all other functions in the Full-Text > Module; they may help you in various other situations. > > Cheers, > Christian > > [1] http://docs.basex.org/wiki/Full-Text_Module#ft:tokens > > > With the GUI I only get the first part: >> >> - Names: >> - Size: 5 MB >> - Entries: 23401 >> und 22662x >> der 20595x >> .... >> >> Thanks in advance. >> >> Best regards, >> Günter >
CG
Christian Grün13 Jan 2016 00:03 #
What did you try so far?
Quoted text · kleist · 34 lines
On Tue, Jan 12, 2016 at 9:49 PM, kleist <kleist at mail.dunzwolff.de> wrote: > Perhaps I don't get it, that command gives me the number of a specific term? But I need the list of all terms (with number of occurences). > > Best, Günter > >> Am 12.01.2016 um 21:39 schrieb Christian Grün <christian.gruen at gmail.com>: >> >>> is there any way to get the complete list of the full-text-index? >> >> Yes there is [1]. Check out all other functions in the Full-Text >> Module; they may help you in various other situations. >> >> Cheers, >> Christian >> >> [1] http://docs.basex.org/wiki/Full-Text_Module#ft:tokens >> >> >> With the GUI I only get the first part: >>> >>> - Names: >>> - Size: 5 MB >>> - Entries: 23401 >>> und 22662x >>> der 20595x >>> .... >>> >>> Thanks in advance. >>> >>> Best regards, >>> Günter >> > >
GD
Günter Dunz-Wolff13 Jan 2016 13:59 #
Sorry, I was a little bit irritated by the given example ... Now, with ft:tokens('db') I'll get mostly what I want, if I'm NOT using stemming when creating the fulltext-index. But its sorted by length of the tokens, inside length it's alphanumeric:
<entry count="142">A</entry>
<entry count="132">B</entry>
<entry count="54">C</entry>
....
<entry count="2">zusammenknäuelte</entry>
<entry count="2">zusammenschütten</entry>
<entry count="2">zusammenzubringen</entry>
So far, I can't figure out a way to do a alphanumeric sorting of the complete list by content of the entry, the token itself. Something like this:
<entry count="xxx">a</entry>
<entry count="xxx">ab</entry>
....
<entry count="xxx">Äußerlichkeiten</entry>
.....
<entry count="xxx">z</entry>
<entry count="xxx">zu</entry>
....
<entry count="2">zusammenzubringen</entry>
Any help would be greatly appreciated. Best regards, Günter
Quoted text · Christian Grün · 39 lines
> Am 13.01.2016 um 00:03 schrieb Christian Grün <christian.gruen at gmail.com>: > > What did you try so far? > > On Tue, Jan 12, 2016 at 9:49 PM, kleist <kleist at mail.dunzwolff.de> wrote: >> Perhaps I don't get it, that command gives me the number of a specific term? But I need the list of all terms (with number of occurences). >> >> Best, Günter >> >>> Am 12.01.2016 um 21:39 schrieb Christian Grün <christian.gruen at gmail.com>: >>> >>>> is there any way to get the complete list of the full-text-index? >>> >>> Yes there is [1]. Check out all other functions in the Full-Text >>> Module; they may help you in various other situations. >>> >>> Cheers, >>> Christian >>> >>> [1] http://docs.basex.org/wiki/Full-Text_Module#ft:tokens >>> >>> >>> With the GUI I only get the first part: >>>> >>>> - Names: >>>> - Size: 5 MB >>>> - Entries: 23401 >>>> und 22662x >>>> der 20595x >>>> .... >>>> >>>> Thanks in advance. >>>> >>>> Best regards, >>>> Günter >>> >> >> >
CG
Christian Grün13 Jan 2016 15:27 #
Quoted text · Günter Dunz-Wolff · 1 line
> So far, I can't figure out a way to do a alphanumeric sorting of the complete list by content of the entry, the token itself.
Try this [1]:
  for $token in ft:tokens('factbook')
  order by $token collation '?lang=de'
  return $token
GD
Günter Dunz-Wolff13 Jan 2016 21:06 #
That works perfect. Thanks a lot.
Quoted text · Christian Grün · 12 lines
> Am 13.01.2016 um 15:27 schrieb Christian Grün <christian.gruen at gmail.com>: > >> So far, I can't figure out a way to do a alphanumeric sorting of the complete list by content of the entry, the token itself. > > Try this [1]: > > for $token in ft:tokens('factbook') > order by $token collation '?lang=de' > return $token > > [1] http://docs.basex.org/wiki/Full-Text#Collations >

⚡Generated with XQuery