Re: How to delete old index

2007-11-25 Thread Cool Coder
and IndexReader is reopened. Can you tell me why this is not happening? - BR Michael McCandless [EMAIL PROTECTED] wrote: Cool Coder wrote: Hi, I used have index refreshed in every 4 hr. However after each refresh, I can see two index. I am not sure how can I delete old index. What do you

Re: How to delete old index

2007-11-25 Thread Cool Coder
. This will touch the index and delete the files that are now deletable, which should be all files for your old index. Mike Cool Coder wrote: What do you mean by you can see two index? I can see two sets of lucene index files with same size and time stamp difference is 4 hrs. E.g. At start up

Re: How to delete old index

2007-11-25 Thread Cool Coder
PROTECTED] wrote: Cool Coder wrote: Yes. Because I cannot close IndexReader in the live system. And also I am running on Windows server. At the end of index writing, I close writer and also reopen reader OK, I'm glad we have it explained! writer.close() reader.close(); reader

Re: Help on FuzzyLikeThisQuery

2007-11-24 Thread Cool Coder
would definitely be satisfied with your suggested query and keep improving non-token list filter. Also I would appreciate your suggestion. - RB markharw00d [EMAIL PROTECTED] wrote: Cool Coder wrote: Is there anyway I can specify which terms are MUST, I mean they have to appear

How to delete old index

2007-11-24 Thread Cool Coder
Hi, I used have index refreshed in every 4 hr. However after each refresh, I can see two index. I am not sure how can I delete old index. On starting of indexing process, I create Writer writer = new IndexWriter(luceneDirectory,false,luceneAnalyzer,true); At the end of

Help on FuzzyLikeThisQuery

2007-11-23 Thread Cool Coder
Hello, I am trying to use FuzzyLikeThisQuery to search my help system and show set of help entries for user selected Help topic. For any selected Help topic, System needs to display all related topics. This works somehow, but if query contains generic terms then result returned by

Related items

2007-11-05 Thread Cool Coder
Hello Group, I have a requirement in my project where I need to display related items for any select item in the group. I am not sure whether this can be possible. Let me tell you that all our documents are indexed and for any document selected by user, we need to display

Re: Best way to count tokens

2007-11-02 Thread Cool Coder
. StandardAnalyzer does not implement it. Check out CachingTokenFilter and wrap StandardAnalzyer in it. Cool Coder wrote: Currently I have extended StandardAnalyzer and counting tokens in the following way. But the index is not getting created , though I call tokenStream.reset(). I am not sure

Re: Best way to count tokens

2007-11-01 Thread Cool Coder
skrev Cool Coder: Hi Group, I need to display list of tokens (tags) in my side those have got maximum occurances in my index. One way I can think of is to keep track of all tokens during analysis and accordingly display them. Is there any other way? e.g. if I want to display tokens in order

Re: Best way to count tokens

2007-11-01 Thread Cool Coder
(tokenStr,Integer.parseInt(TokenHolder.tokenMap.get(tokenStr).toString())+1); } token = result.next(); } //exxtra reset result.reset(); } catch (IOException e) { e.printStackTrace(); } } Karl Wettin [EMAIL PROTECTED] wrote: 1 nov 2007 kl. 18.09 skrev Cool Coder: prior

Best way to count tokens

2007-10-31 Thread Cool Coder
Hi Group, I need to display list of tokens (tags) in my side those have got maximum occurances in my index. One way I can think of is to keep track of all tokens during analysis and accordingly display them. Is there any other way? e.g. if I want to display tokens in order of

Re: HTML analyzer

2007-10-26 Thread Cool Coder
for net and result was something http://sdjkkjsd.net and it got converted to http://sjhdnjkshn.bnet/b by highlighter. -BR Karl Wettin [EMAIL PROTECTED] wrote: 25 okt 2007 kl. 20.18 skrev Cool Coder: Is there any analyzer that can be configured All of them can be. TokenFilter.html I

HTML analyzer

2007-10-25 Thread Cool Coder
Is there any analyzer that can be configured to stop searching url test i.e. href=? Maybe I need some sort of filter with reg ex so that searcher will skip searching text if it matches regular expressions in the filter. I am not sure whether this is possible? I would appreciate your valuable

Highlighter and href fields

2007-10-24 Thread Cool Coder
Is there anyway I stop highlighting text if it is a href/url etc...? The problem occurs when the field content is a URL which contains the query e.g. my search is for .net and fields has value http://jkjsd.net. After applying highlighter, it becomes http://jkjsdb.net/b, which is a wrong URL.

Re: Highlighter and href fields

2007-10-24 Thread Cool Coder
, but would parse any URL as a single token. Of course, if you are using TokenSource, this is not an option. - Mark Cool Coder wrote: Is there anyway I stop highlighting text if it is a href/url etc...? The problem occurs when the field content is a URL which contains the query e.g. my search

Meta- search descriptions

2007-10-23 Thread Cool Coder
I was just looking into couple of search engines like indeed.com or bixee.com and I really got surprised the accuracy of information they have built in their indexes and also they provide for search result. I have same sort of requirement to build indexes for all my cleints site and provide

Re: Meta- search descriptions

2007-10-23 Thread Cool Coder
://www.dbsight.net demo: http://search.dbsight.com Lucene Database Search in 3 minutes: http://wiki.dbsight.com/index.php?title=Create_Lucene_Database_Search_in_3_minutes On 10/23/07, Cool Coder wrote: I was just looking into couple of search engines like indeed.com or bixee.com and I really got surprised

Grouping by field value

2007-10-08 Thread Cool Coder
Hello Gurus, I just started working on a lucene based project and I need your help on the following queries. The result of search needs to show a summary based on a Field value. One of the field in the search Document is type with some possible values like good , bad, better

Re: Grouping by field value

2007-10-08 Thread Cool Coder
If Solr will work for you, it has faceting built in. Let me check with Solr, whether I can use Solr. My next question is very simple, I just wanted to search more than one field something like search for kbk pencil in description field and manufacturer field. Can I use BooleanQuery for that?