Page 1 of 1
FullTextSearch
Posted: Tue Nov 02, 2021 12:44 am
by Otto
Hello friends,
At the moment we are working on a new FTS function, you can use 1:1 for FIVEWIN and mod harbour.
Best regards,
Otto
![Image](https://mybergland.com/fwforum/ftssource.jpg)
![Image](https://mybergland.com/fwforum/ftsfw.png)
![Image](https://mybergland.com/fwforum/ftshtml.jpg)
Re: FullTextSearch
Posted: Tue Nov 02, 2021 8:50 am
by hmpaquito
Hola,
Los filtros son siempre lentos. Especialmente cuando hay muchos registros y el filter incluye pocos registros.
Una posible solucion para obtener mas velocidad es incluir en la .dbf un campo C 40 y cuando se obtenga el resultado del FullTextSearh() grabar en esos campos una clave unica, por ejemplo el TimeStamp + Random() (para evitar choques con otros usuarios)
cKey:= hb_DateTime()+ StrZero(hb_Random(), 10)
Despues se grabara esa key en los distintos registros que conforman el filtro y finalmente se utilizara el indice.
Otra segunda opcion que puede servir es crear indices temporales.
Saludos
Re: FullTextSearch
Posted: Tue Nov 02, 2021 12:56 pm
by Otto
Hallo,
Gracias por tu propuesta.
Haré algunas pruebas. En este caso, creo que es más fácil si devuelvo una matriz multidimensional como resultado: por ejemplo, texto y enlace.
Pero tu sugerencia es genial. Simple y eficaz.
A menudo no ves lo simple.
Cálidos saludos
Otto
Hello,
Thank you for your proposition.
I will do some tests. In this case, I think it is easiest if I return a multi-dimensional array as a result: e.g. text and link.
But your suggestion is great. Simple and effective.
Often you don't see the simple thing.
Warm greetings
Otto