lucene-cvs | 1 May 2004 08:05
Picon
Picon
Favicon

[Jakarta Lucene Wiki] Updated: PoweredBy

   Date: 2004-04-30T23:05:51
   Editor: 64.170.114.175 <>
   Wiki: Jakarta Lucene Wiki
   Page: PoweredBy
   URL: http://wiki.apache.org/jakarta-lucene/PoweredBy

   no comment

Change Log:

------------------------------------------------------------------------------
 <at>  <at>  -11,6 +11,7  <at>  <at> 
  * [http://www.mil.fi/ Finnish Military]
  * [http://www.furl.net Furl]
  * [http://www.inperspective.com Inperspective -spatial search]
+ * [http://www.ioffer.com iOffer.com - Online Marketplace]
  * [http://www.i2a.com/websearch/ i2a.WebSearch]
  * [http://www.jguru.com jGuru]
  * [http://www.jivesoftware.com/ Jive Forums]
John Allan Casey | 1 May 2004 11:19
Picon
Favicon

class NumberFilter extends TokenFilter

Recently I wrote a small NumberFilter similar in structure to the
StopFilter except it filters out numeric tokens.  Anyway, here is the
simple source code if you are interested in adding it into the API as it
would seem to be something that needs to be done fairly often ???

class NumberFilter extends TokenFilter
{
	NumberFilter(TokenStream in)
	{
		super(in);
	}
	public Token next() throws IOException
	{
		for(Token token = input.next(); token != null; token = input.next())
		{
			if(Character.isDigit(token.termText().charAt(0))==false)
				return token;
		}
		return null;
	}
}
lucene-cvs | 2 May 2004 08:46
Picon
Picon
Favicon

[Jakarta Lucene Wiki] Updated: PoweredBy

   Date: 2004-05-01T23:46:29
   Editor: 212.238.156.229 <>
   Wiki: Jakarta Lucene Wiki
   Page: PoweredBy
   URL: http://wiki.apache.org/jakarta-lucene/PoweredBy

   no comment

Change Log:

------------------------------------------------------------------------------
 <at>  <at>  -35,6 +35,6  <at>  <at> 
  * [http://www.eluniversal.com/ El Universal]
  * [http://www.webfood.us/ Webfood.us]
  * [http://yazd.yasna.com/ Yazd Discussion Forum Software]
- * [http://www.zilverline.org/ Zilverline]
+ * [http://www.zilverline.org/ Zilverline Reverse Search Engine]
  * [http://zoe.nu/ Zoe]
  * [http://www.pferde-physio.net/ Pferdephysiotherapie: Pferdephysiotherapie Britta Wauts]
Paul Elschot | 2 May 2004 22:27
Picon
Picon
Favicon

PATCH: unused code in BooleanScorer.java

Dear developers,

All tests pass here with this change in BooleanScorer.java.
The collectHits method is not used anywhere in the Lucene code
and it's not part of the API defined by Scorer.

Have a nice day,
Paul

Index: BooleanScorer.java
===================================================================
RCS file: /home/cvspublic/jakarta-lucene/src/java/org/apache/lucene/search/BooleanScorer.java,v
retrieving revision 1.7
diff -u -3 -p -r1.7 BooleanScorer.java
--- BooleanScorer.java	29 Mar 2004 22:48:03 -0000	1.7
+++ BooleanScorer.java	2 May 2004 20:17:13 -0000
 <at>  <at>  -151,21 +151,6  <at>  <at>  final class BooleanScorer extends Scorer
       this.scorer = scorer;
     }

-    public final void collectHits(HitCollector results) {
-      final int required = scorer.requiredMask;
-      final int prohibited = scorer.prohibitedMask;
-      final float[] coord = scorer.coordFactors;
-
-      for (Bucket bucket = first; bucket!=null; bucket = bucket.next) {
-	if ((bucket.bits & prohibited) == 0 &&	  // check prohibited
-	    (bucket.bits & required) == required){// check required
-	  results.collect(bucket.doc,		  // add to results
-			  bucket.score * coord[bucket.coord]);
(Continue reading)

bugzilla | 3 May 2004 21:48
Picon
Favicon

DO NOT REPLY [Bug 28748] New: - Inconsistent behaviour sorting against field with no related documents

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28748>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28748

Inconsistent behaviour sorting against field with no related documents

           Summary: Inconsistent behaviour sorting against field with no
                    related documents
           Product: Lucene
           Version: CVS Nightly - Specify date in submission
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Search
        AssignedTo: lucene-dev <at> jakarta.apache.org
        ReportedBy: sam <at> redspr.com

In StringSortedHitQueue - generateSortIndex seems to mistake 
the TermEnum having values as indicating that the sort field 
has entries in the index.

In the case where the search has matching results an ArrayIndexOutOfBounds
exception is thrown in sortValue (line 177 StringSortedHitQueue)
as generateSortIndex creates a terms array of zero length and fieldOrder
(Continue reading)

Amrun | 3 May 2004 23:52
Picon
Picon

altering index

Hi, 

I'm working on a project to search for documents on the web. Everything
works fine, but I want to restrict the availability of the documents. When
the user gives it's document to get indexed he can choose a date at which
the document's availability should expire. So I need a field or something
like that in which I can save the date of expiration. Over this field I want
to alter the index. 
I hope I haven't explained my problem to unclear. So, does anybody know any
methods to do this or how I can alter my index the best way?

Would be great, 
thx Amrûn

--

-- 
"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info
Stephane James Vaucher | 4 May 2004 07:52
Picon

Re: altering index

Two points if I understand your question:

1) Search scope:
Add your date of expiration in the index and restrict searches on that
date. You can use a date filter, or a ranged query in a field with the
date in a yyyyMMdd format.

2) Document management scope:
When the date expires, you might want to schedule for the document to be
removed from the index.

HTH,
sv

On Mon, 3 May 2004, Amrun wrote:

> Hi,
>
> I'm working on a project to search for documents on the web. Everything
> works fine, but I want to restrict the availability of the documents. When
> the user gives it's document to get indexed he can choose a date at which
> the document's availability should expire. So I need a field or something
> like that in which I can save the date of expiration. Over this field I want
> to alter the index.
> I hope I haven't explained my problem to unclear. So, does anybody know any
> methods to do this or how I can alter my index the best way?
>
> Would be great,
> thx Amrûn
>
(Continue reading)

Rasik Pandey | 4 May 2004 19:14
Favicon

New Sorting Classes

Hello,

I quickly had a look in the new sorting classes and didn't find any information regarding field sorting for
"String" values based on a Locale. Should StringSortedHitQueue.java accept a Locale such that its
ScoreDocLookupComparator.compare() method could sort the values properly for the Locale language.
Or, did I overlook something?

Thanks,
RBP
lucene-cvs | 5 May 2004 00:43
Picon
Picon
Favicon

[Jakarta Lucene Wiki] Updated: PoweredBy

   Date: 2004-05-04T15:43:51
   Editor: 219.142.141.13 <>
   Wiki: Jakarta Lucene Wiki
   Page: PoweredBy
   URL: http://wiki.apache.org/jakarta-lucene/PoweredBy

   no comment

Change Log:

------------------------------------------------------------------------------
 <at>  <at>  -2,6 +2,7  <at>  <at> 
  * [http://www.ablestock.com/ AbleStock Royalty Free Images]
  * [http://www.akamai.com/ Akamai Technologies]
  * [http://www.biomates.com/ BioMates]
+ * [http://www.blogchina.com/weblucene/ BlogChina]
  * [http://www.bobdylan.com/ Bob Dylan]
  * [http://www.celoxis.com/ Celoxis]
  * [http://www.davindi.nl/ Davindi]
Tim Jones | 5 May 2004 00:47
Favicon

Re: New Sorting Classes

yes, I think you're right - there should be a way to specify the Locale in
the SortField somehow.

What about something like:

  public SortField (String field, Locale locale, boolean reverse);

Where the given field contains Strings in the given Locale.

This, then, would propagate down to the StringSortedHitQueue, etc.

?

Tim

> -----Original Message-----
> From: Rasik Pandey [mailto:rasik.pandey <at> ajlsm.com]
> Sent: Tuesday, May 04, 2004 12:15 PM
> To: 'Lucene Developers List'
> Subject: New Sorting Classes
> 
> Hello,
> 
> I quickly had a look in the new sorting classes and didn't 
> find any information regarding field sorting for "String" 
> values based on a Locale. Should StringSortedHitQueue.java 
> accept a Locale such that its 
> ScoreDocLookupComparator.compare() method could sort the 
> values properly for the Locale language. Or, did I overlook something?
> 
(Continue reading)


Gmane