java-user@lucene.apache.org
[Top] [All Lists]

Re: How to search in metadata? (filename, document title, cocument creat

Subject: Re: How to search in metadata? filename, document title, cocument creator, ...
From: Grant Ingersoll
Date: Mon, 20 Oct 2008 19:32:23 -0400

On Oct 20, 2008, at 5:07 PM, mil84 wrote:


thx :) There was also another problem with filename (because I indexed full
path, not only name). But I fixed it, and now it finally works.

Last question - how to get number of hits in every document (not only global
number of hits)? Best would be a simple example, if possible...

You'll have to use SpanQuery and it's derivatives for that. See the javadocs and/or search the archives of the mailing list. I don't have any examples handy, but I believe I did a talk on Span Queries a few years back at ApacheCon.


--
View this message in context: 
http://www.nabble.com/How-to-search-in-metadata--%28filename%2C-document-title%2C-cocument-creator%2C-...%29-tp20069124p20078814.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: java-user-help@xxxxxxxxxxxxxxxxx


--------------------------
Grant Ingersoll
Lucene Boot Camp Training Nov. 3-4, 2008, ApacheCon US New Orleans.
http://www.lucenebootcamp.com


Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ










---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: java-user-help@xxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>