Searching dot (".")

Hi:

I have the next problem:

I store “L. GARCIA FERNANDEZ” in a node with seach-type=“text” but if i make a query with ~=“L.” or “L” it does not returns any element.
If query by ~=“GARCIA” it return the document.
The charset is iso-8859-1.

How can i make the query?

Thanks : Juan Carlos.

Try something like this:

http://localhost/tamino/test/demodocs?_xql=test/name[//*~=“.”]

With “text” search-type, Tamino builds up a text index of words, so it uses . and , for example as word-delimiters so in your case it builds up an text index of three words:
L
GARCIA
FERNANDEZ
refering to the one document, so queries
test[name~=“L”]
test[name~=“GARCIA”]
test[name~=“garcia”]
…etc
all return the same document. So one cannot search for “.” since this is not a word.

Thanks for your help:

I can find “L. GARCIA FERNANDEZ” searching
test[name~=“L”]
test[name~=“L.”]
test[name~=“L” and name~=“GARCIA”]
test[name~=“L.” and name~=“GARCIA”]

but I can’t find it with:
test[name~=“L GARCIA”]
test[name~=“L. GARCIA”]
test[name~=“L GARCIA FERNANDEZ”]
test[name~=“L. GARCIA FERNANDEZ”]

It’s curious, but if i store “L. GARCIA” i cand find it with the query:
test[name~=“L. GARCIA”]
test[name~=“L GARCIA”]

What can i do for quering by two or more consecutive words?

Thanks again: Juan Carlos.

Since you have defined SEARCH-TYPE=TEXT, each
word will be indexed. To query consecutive words, you should use “name~=[“L. GAR”]”.

More examples:
name~=[“*FERNANDEZ”]
name~=["L.]