On 8/10/06, ma lan <[EMAIL PROTECTED]> wrote:
Is there anybody know how to do it?
ma lan <[EMAIL PROTECTED]> wrote:
I hope lenya can search attribute, for example
<img src="dfd.jpg" title="mypc"/> .
how to index and search the "title" attribute with lucene?
I'm using lenya 1.2.4.
Anybody can help me?
1. Posting twice does not help. It just takes our time so we can
answer less questions.
2. Questions about using Lenya belong on the Lenya User ML. The Dev
ML is discussions about developing Lenya; as a general rule, if your
issue is not about programming Lenya's core, this is the wrong list.
3. The Lucene User ML should have more relevant expertise than Lenya
users about how to configure Lucene. We can tell you where the files
are in Lenya, but they can better assist with the configuration
settings.
4. I think you can change the XPath expression in the configuration.
I put the configuration in "lenyadocs.xconf", and 1.4 (which included
my code) should be using that file. The general results are based on
this line:
<luc:field name="contents" type="UnStored" xpath="/"/>
Try changing it to something like:
<luc:field name="contents" type="UnStored" xpath="/|//@title"/>
I have not tried it, so you need to test and adjust it until it works.
Be nice and post your solution on the Lenya User ML when you have it
working.
solprovider
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]