Re: Extention XPath function

"Natalia Shilenkova" <[email protected]>
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
On 10/22/07, Vadim Gritsenko <[email protected]> wrote:
> > Text query syntax is the same as Lucene query syntax,
> > except it does not use fields (using fields does not cause errors when
> > parsing the query, but function will return false).
>
> Will it log this situation? Possibly, a WARNing?

No, currently it won't be logged. I agree it would be a good idea to
inform user somehow about this situation, except I'm not sure if it is
possible to do without going in depth of Lucene query parser.

> > For XPath queries that use ftcontains function Xindice will attempt to
> > optimize the query by using LuceneIndexer, if it is available and has
> > a suitable pattern. If LuceneIndexer exists for the collection being
> > queried, even if there is no suitable pattern,
>
> Does it also log this condition? I'd think at INFO level, say that indexer
> available but this particular pattern is missing, so that user can check logs
> and correct the situation.

This behavior is consistent with queries that may be using other types
of indexers. If query uses starts-with function and there is no value
indexer for that pattern, it will not be reported. Is there any reason
to treat new function differently?

Natalia
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.