Tag: FULL-TEXT-SEARCH
Tengo una imagen personalizada de Docker de neo4j basada en neo4j:4.4. En su inicio, necesito ejecutar algunas declaraciones cypher, que incluyen la creación de un índice de texto completo. Lo estoy haciendo utilizando el archivo apoc.conf: apoc.import.file.use_neo4j_config=false apoc.import.file.enabled=true apoc.export.file.enabled=true apoc.initializer.neo4j.0=CALL apoc.cypher.runSchemaFile(“file:////var/lib/neo4j/db_init/create_regular_indexes.cypher”) apoc.initializer.neo4j.1=CALL apoc.cypher.runSchemaFile(“file:////var/lib/neo4j/db_init/create_fulltext_indexes.cypher”) El archivo create_fulltext_indexes.cypher tiene el siguiente contenido: . . . Read more
Quiero crear una búsqueda de texto completo simple con imprecisión y con búsqueda por prefijo. Lo que quiero decir es que tengo una entidad “Tags”, tiene una columna “name”, nada especial. Por ejemplo, tengo los nombres “Animal” y “Animal Portrait”. Cuando intento esto: { “query”: { “match”: { “name”: { . . . Read more
Tengo la siguiente colección: books> db.books.find() [ { _id: ObjectId(“61ab85b0056b5357b5e23e6b”), fields: ‘hello buenos días’ }, { _id: ObjectId(“61ab85b5056b5357b5e23e6c”), fields: ‘buenos días’ }, { _id: ObjectId(“61ab8679056b5357b5e23e6d”), fields: ‘hola buenos días chicos’ }, { _id: ObjectId(“61ab8684056b5357b5e23e6e”), fields: ‘buenos días chicos’ } ] Luego, ejecuto esta consulta: db.books.find({$text : {$search : “buenos días . . . Read more
Requerimiento – El orden del resultado de la consulta debe ser el siguiente: resultado por título > resultado por contenido > resultado por etiqueta – Cada resultado debe estar en el orden más reciente. Quiero hacerlo en una sola consulta. ¿Cómo hacer una consulta eficiente? Las siguientes son consultas que . . . Read more
Utilicé la búsqueda de texto completo de SQL Server pero tuve problemas con la consulta CONTAINS NEAR. Cuando uso … CONTAINS (nombre_columna, 'NEAR ((John, 1999), 30)') en la consulta de texto sin "\n" como se muestra a continuación: ….xxx John Jacob Smith 1999 está bien. Pero si la consulta de . . . Read more