Home » Server Options » Text & interMedia » oracle text contains near (Oracle 11g)
oracle text contains near [message #294099] Wed, 16 January 2008 07:59 Go to previous message
amparo
Messages: 2
Registered: January 2008
Junior Member
Near (with proximity) not work with stopword.
please, How I can do??????
Thank you.

---->count "web" but "web is include into stoplist

begin
ctx_ddl.create_stoplist('mystop');
end;

begin
ctx_ddl.add_stopword('mystop', 'el');
ctx_ddl.add_stopword('mystop', 'the');
ctx_ddl.add_stopword('mystop', 'web');
end;

CREATE TABLE PRUEBA_DOC
( ID NUMBER,
TITULO VARCHAR2(60 BYTE),
DOCUMENTO CLOB
)

CREATE INDEX PRUEBA_DOC_IDX ON PRUEBA_DOC (TITULO)
INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS('STOPLIST mystop')


SELECT *
FROM prueba_doc
where contains ( titulo, 'near((perro,vecina),4,TRUE)',1 ) >0

22 el perro de web vecina el gato
33 el perro en la de web vecina el gato
55 el perro de el the web vecina el gato
66 el perro que está en salón vecina el gato


SELECT *
FROM prueba_doc
where contains ( titulo, 'near((perro,vecina),3,TRUE)',1 ) >0

22 el perro de web vecina el gato

SELECT *
FROM prueba_doc
where contains ( titulo, 'near((perro,vecina),1,TRUE)',1 ) >0
0 rows.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [CONTAINS] No result whereas there are
Next Topic: Oracle Multilingual DB - need information
Goto Forum:
  


Current Time: Thu Apr 25 17:36:36 CDT 2024