You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by ma lan <ma...@yahoo.com> on 2006/08/10 09:56:59 UTC

how to index and search a xhtml atttibute by using lucene?

 
  Hi:
   
  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?
  Thanks a lot.

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: how to index and search a xhtml atttibute by using lucene?

Posted by so...@apache.org.
On 8/10/06, ma lan <ma...@yahoo.com> wrote:
> Is there anybody know how to do it?
> ma lan <ma...@yahoo.com> 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: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: how to index and search a xhtml atttibute by using lucene?

Posted by ma lan <ma...@yahoo.com>.
Is there anybody know how to do it?
   
  

ma lan <ma...@yahoo.com> wrote:
     
  Hi:
   
  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?
  Thanks a lot.
  __________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 		
---------------------------------
Get your email and more, right on the  new Yahoo.com