Re: knowing which field contributed the search result

2005-02-22 Thread John Wang
Hi David: Can you further explain which calls specically would solve my problem? Thanks -John On Mon, 21 Feb 2005 12:20:15 -0800, David Spencer [EMAIL PROTECTED] wrote: John Wang wrote: Anyone has any thoughts on this? Does this help?

Re: knowing which field contributed the search result

2005-02-22 Thread David Spencer
John Wang wrote: Hi David: Can you further explain which calls specically would solve my problem? Not in depth but anyway: Examine the output of Explanation.toHtml() and/or Explanation.toString(). Does it contain the info you want..if so call the other Explanation methods and/or dig into the

Re: knowing which field contributed the search result

2005-02-21 Thread John Wang
Anyone has any thoughts on this? Thanks -John On Wed, 16 Feb 2005 14:39:52 -0800, John Wang [EMAIL PROTECTED] wrote: Hi: Is there way to find out given a hit from a search, find out which fields contributed to the hit? e.g. If my search for: contents1=brown fox OR

Re: knowing which field contributed the search result

2005-02-21 Thread David Spencer
John Wang wrote: Anyone has any thoughts on this? Does this help? http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/search/Searchable.html#explain(org.apache.lucene.search.Query,%20int) Thanks -John On Wed, 16 Feb 2005 14:39:52 -0800, John Wang [EMAIL PROTECTED] wrote: Hi: Is there way

knowing which field contributed the search result

2005-02-16 Thread John Wang
Hi: Is there way to find out given a hit from a search, find out which fields contributed to the hit? e.g. If my search for: contents1=brown fox OR contents2=black bear can the document founded by this query also have information on whether it was found via contents1 or contents2 or both.

Search Result Text

2004-12-22 Thread Hetan Shah
All, This might be asked earlier please point to the earlier post or any pointers would be appreciated. I have bunch of HTML pages which I index using IndexHTML. My dilemma is when I want to search the pages and then display the results the text that I use for the results snippet do not get the

Re: Search Result Text

2004-12-22 Thread Erik Hatcher
The demo IndexHTML does not store the contents field - it is indexed using a Reader and thus not stored. You will have to modify the code to get the complete contents available at search time. Erik On Dec 22, 2004, at 5:01 PM, Hetan Shah wrote: All, This might be asked earlier please

Re: restricting search result

2004-12-06 Thread Sergiu Gordea
Paul wrote: Hi, how yould you restrict the search results for a certain user? I'm indexing all the existing data in my application but there are certain access levels so some users should see more results then an other. Each lucene document has a field with an internal id and I want to restrict on

Re: restricting search result

2004-12-04 Thread Paul Elschot
Paul, On Friday 03 December 2004 23:31, you wrote: Hi, how yould you restrict the search results for a certain user? I'm One way to restrict results is by using a Filter. indexing all the existing data in my application but there are certain access levels so some users should see more

Re: restricting search result

2004-12-04 Thread Paul
The thing with the different indexes sound too complecated because the users (and their rights) as well as the index itself change quite often. One way to restrict results is by using a Filter. but a filter is applied after the whole search is performed, isn't it? I thought it might be faster

Re: restricting search result

2004-12-04 Thread Erik Hatcher
On Dec 4, 2004, at 6:44 AM, Paul wrote: One way to restrict results is by using a Filter. but a filter is applied after the whole search is performed, isn't it? Incorrect. A filter is applied *before* the search truly occurs - in other words it reduces the search space. Here is a code example

Re: restricting search result

2004-12-04 Thread Paul Elschot
On Saturday 04 December 2004 15:44, Erik Hatcher wrote: On Dec 4, 2004, at 6:44 AM, Paul wrote: One way to restrict results is by using a Filter. but a filter is applied after the whole search is performed, isn't it? Incorrect. A filter is applied *before* the search truly occurs - in

restricting search result

2004-12-03 Thread Paul
Hi, how yould you restrict the search results for a certain user? I'm indexing all the existing data in my application but there are certain access levels so some users should see more results then an other. Each lucene document has a field with an internal id and I want to restrict on that basis.

Re: restricting search result

2004-12-03 Thread Otis Gospodnetic
This is entirely application-specific. As the simplest approach, you can index each user's documents in a separate index and use (Parallel)MultiSearcher to search appropriate indices (which ones are appropriate to search has to be a part of your app's access control logic). Otis --- Paul

GUUUI - The optimal layout of search result pages

2004-10-11 Thread Erik Hatcher
I found this interesting: http://www.guuui.com/posting.php?id=1585 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: GUUUI - The optimal layout of search result pages

2004-10-11 Thread Dawid Weiss
It is quite interesting, Erik, thanks for the link. I'm sure you're aware of the post-search clustering addon to Nutch that is based on the project I'm heading -- Carrot2. If you have any ideas of how this could be made better, I'm always open to suggestions. Regards, Dawid

Search result grouped in categories?

2004-09-21 Thread William Sporrong
Hello everyone, I'm trying to use Lucene in a webproject to search for products. The problem is that I have to display the search results grouped by category. There are about 500.000 products and every product belongs to a category. There are 150 categories. Now for every search I would like

Sort Search Result

2004-08-24 Thread Natarajan.T
FYI, How can I get the search results in Ascending order... (Sort API) Thanks, Natarajan.

RE: Sort Search Result

2004-08-24 Thread Aviran
Look at SortField http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/search/SortField .html -Original Message- From: Natarajan.T [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 11:35 AM To: 'Lucene Users List' Subject: Sort Search Result FYI, How can I get

Search Result + Highlighter

2004-07-14 Thread Karthik N S
in the document and so it does not show up in the text below the link. What can I do so that in all cases the text below the link always has the piece of the document where the keyword is found? thanks in advance. -H Hetan Shah wrote: What I am trying to figure out is. In my search result

Re: Search Result

2004-07-02 Thread David Spencer
Hetan Shah wrote: My search results are only displaying the top portion of the indexed documents. It does match the query in the later part of the document. Where should I look to change the code in demo3 of default 1.3 final distribution. In general if I want to show the block of document that

Re: Search Result

2004-07-02 Thread Hetan Shah
What I am trying to figure out is. In my search result which is returned by the Document doc = hits.doc(i); text to show = doc.get(summary); The summary field seems to contain only the first few lines of the document. How can I make it to contain the piece that matches the query string

Re: Lucene search result no stable

2004-01-23 Thread Ardor Wei
Thanks, Morus, Our real web server, database and the directory Lucene writes in physically share the same computer. File system is Win FAT. For java.io.tmpdir, do you mean I need to explicitly set it as system environment variable or set it in a property file? Thanks again! --- Morus Walter

Re: Lucene search result no stable

2004-01-21 Thread Morus Walter
Ardor Wei writes: What might be the problem? How to solve it? Any suggestion or idea will be appreciated. The only problem with locking I saw so far is that you have to make sure that the temp dir is the same for all applications. Lucene 1.3 stores it's lock in the directory that is defined

Lucene search result no stable

2004-01-20 Thread Ardor Wei
Lucene. It looks like it is pretty straight and correct. But the exceptions keep being thrown and I think the unstable search result is also related to these exceptions. What might be the problem? How to solve it? Any suggestion or idea will be appreciated. Thanks

Search result ordering question

2002-03-12 Thread Kent Vilhelmsen
I've been using Lucene a bit, and find it very flexible and fast. However, I need to order search results by date (or, equally, document id); I've looked a bit into (re)writing a collect method without any luck. I'm not programming Java too much, so I'm not getting any way with the (few) hints

RE: Search result ordering question

2002-03-12 Thread Spencer, Dave
PROTECTED]] Sent: Tuesday, March 12, 2002 12:00 PM To: [EMAIL PROTECTED] Subject: Search result ordering question I've been using Lucene a bit, and find it very flexible and fast. However, I need to order search results by date (or, equally, document id); I've looked a bit into (re)writing