Re: [basex-talk] How to get the complete list of full-text-index

2016-01-13 Thread Günter Dunz-Wolff
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:
A
B
C

zusammenknäuelte
zusammenschütten
zusammenzubringen

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:
a
ab

Äußerlichkeiten
.
z
zu

zusammenzubringen

Any help would be greatly appreciated.

Best regards, Günter

> Am 13.01.2016 um 00:03 schrieb Christian Grün :
> 
> What did you try so far?
> 
> On Tue, Jan 12, 2016 at 9:49 PM, kleist  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 :
>>> 
 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
>>> 
>> 
>> 
> 




Re: [basex-talk] How to get the complete list of full-text-index

2016-01-13 Thread Günter Dunz-Wolff
That works perfect. Thanks a lot.

> Am 13.01.2016 um 15:27 schrieb Christian Grün :
> 
>> 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
> 




Re: [basex-talk] How to get the complete list of full-text-index

2016-01-13 Thread Christian Grün
> 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


Re: [basex-talk] How to get the complete list of full-text-index

2016-01-12 Thread kleist
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 :
> 
>> 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
> 




Re: [basex-talk] How to get the complete list of full-text-index

2016-01-12 Thread Christian Grün
> 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


Re: [basex-talk] How to get the complete list of full-text-index

2016-01-12 Thread Christian Grün
What did you try so far?

On Tue, Jan 12, 2016 at 9:49 PM, kleist  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 :
>>
>>> 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
>>
>
>