Re: How to delete old index

2007-11-25 Thread Cool Coder
AIL 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.c

Re: How to delete old index

2007-11-25 Thread Cool Coder
the old reader. 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 s

Re: How to delete old index

2007-11-25 Thread Cool Coder
s created 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

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 Indexing

Re: Help on FuzzyLikeThisQuery

2007-11-24 Thread Cool Coder
it with Lucene. Rather I 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 &q

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 Fu

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 rela

Re: Best way to count tokens

2007-11-02 Thread Cool Coder
tional. 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.re

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: >

Re: Best way to count tokens

2007-11-01 Thread Cool Coder
15.18 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

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 their

Re: HTML analyzer

2007-10-26 Thread Cool Coder
"net" and result was something http://sdjkkjsd.net and it got converted to http://sjhdnjkshn.net 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. T

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

Re: Highlighter and href fields

2007-10-24 Thread Cool Coder
r indexing Analyzer, 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 th

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://jkjsd.net, which is a wrong URL. Can I

Re: Meta- search descriptions

2007-10-23 Thread Cool Coder
ite: http://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 re

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: 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 BooleanQ

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", "bett