Re: htsearch returns no results
Steven Carr <[email protected]> Tue, 29 Jan 2008 17:22:38 +0100
| Newsgroups | gmane.comp.web.htdig.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Htdig users,
Many Thanks for your answers, Its now working :)
First I added the lsb-cxx package, I read somewhere on the net it was =
needed.
# dpkg -l | grep xx
ii lsb-cxx 3.1-5ubuntu2 Linux =
Standard Base 3.1 C++ support package
I then tried compile the Beta Release (3.2.0b6). Before I had =
automatically gone for the stable release because it was named "stable".
I did a simple ./configure and it complained about zlibs, so I did a
./configure --without-zlib
Then make, then make install. It worked :)
I pointed the htdig.conf file to my website and did a rundig -vvv.
But now when I use htsearch from command line and via web interface I do =
get search results :) :)
# /opt/www/cgi-bin/htsearch -vvv
Enter value for words: public
word: public
tempWords: 'public:0 '
Boolean: 'public:0 '
Adding algorithm exact
Adding algorithm synonyms
Adding algorithm endings
initial: ''
Fuzzy on: public
exact public
synonyms
endings publicness publics publicly
searchWords: '(:0 public:0 |:0 publicness:0 |:0 publics:0 |:0 publicly:0 =
):0 '
LogicalWords: (public or publicness or publics or publicly)
Pattern: public|publicness|publics|publicly
Highlight Pattern: public|publicness|publics|publicly
perform_push @0: public
score: push @0
term:factor
perform_push @1: publicness
score: empty list, push 0 @1
term:factor
or--
or: no 2nd operand
stack:1
perform_push @1: publics
score: empty list, push 0 @1
term:factor
or--
or: no 2nd operand
stack:1
perform_push @1: publicly
score: empty list, push 0 @1
term:factor
or--
or: no 2nd operand
stack:1
term:factor
http://quatsch.no-ip.com/
base_score 1 date_score 0 backlink_score 0.38
score 0.8671(0.8671), maxScore -1.79769e+308, minScore 1.79769e+308
Set maxScore =3D score
Set minScore =3D score
Content-type: text/html
Enter value for format:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Search results for 'public'</title></head>
<body bgcolor=3D"#eef7ff">
<h2><img src=3D"/htdig/htdig.gif" alt=3D"ht://Dig">
Search results for '(public or publicness or publics or publicly)'</h2>
<hr noshade size=3D"4">
<form method=3D"get" action=3D"">
<font size=3D"-1">
<input type=3D"hidden" name=3D"config" value=3D"">
<input type=3D"hidden" name=3D"restrict" value=3D"">
<input type=3D"hidden" name=3D"exclude" value=3D"">
Match: <select name=3D"method">
<option value=3D"and" selected>All
<option value=3D"or">Any
<option value=3D"boolean">Boolean
</select>
Format: <select name=3D"format">
<option value=3D"builtin-long">Long
<option value=3D"builtin-short">Short
</select>
Sort by: <select name=3D"sort">
<option value=3D"score" selected>Score
<option value=3D"time">Time
<option value=3D"title">Title
<option value=3D"revscore">Reverse Score
<option value=3D"revtime">Reverse Time
<option value=3D"revtitle">Reverse Title
</select>
<br>
Refine search:
<input type=3D"text" size=3D"30" name=3D"words" value=3D"public">
<input type=3D"submit" value=3D"Search">
</font>
</form>
<hr noshade size=3D"1">
<strong>Documents 1 - 1 of 1 matches.
More <img src=3D"/htdig/star.gif" alt=3D"*">'s indicate a better match.
</strong>
<hr noshade size=3D"1">
generateStars: nStars 4 of 4
generateStars: nStars 4 of 4
<dl><dt><strong><a =
href=3D"http://quatsch.no-ip.com/">Quatsch.no-ip.com</a></strong><img =
src=3D"/htdig/star.gif" alt=3D"*"><img src=3D"/htdig/star.gif" alt=3D"*"><i=
mg =
src=3D"/htdig/star.gif" alt=3D"*"><img src=3D"/htdig/star.gif" alt=3D"*">
</dt><dd> QUATSCH.NO-IP.COM <strong>Public</strong> * Picture Gallery * =
temp * Breks Private * Oreilley Books View Picture Gallery <br>
<em><a href=3D"http://quatsch.no-ip.com/">http://quatsch.no-ip.com/</a></em>
<font size=3D"-1">02/24/07, 761 bytes</font>
</dd></dl>
<hr noshade size=3D"4">
<a href=3D"http://www.htdig.org/">
<img src=3D"/htdig/htdig.gif" border=3D"0" alt=3D"">ht://Dig 3.2.0b6</a>
</body></html>
Many Thanks, Now Ill look into tweaking the config, trying to index =
german umlauts etc, and customising search results pages.
Thanks, Cheers,
Steve.
On 29/01/2008 06:42, dmacdoug wrote:
> For what it's worth, I have been having exactly the same problem on
> two different systems. Both systems are Debian systems and they
> had been running fine until I updated them from Sarge (the old stable
> distribution) to Etch (the newest stable distribution). When updated, =
> nothing else was changed and the indexing still seems to work exactly =
> as it did before, but searches always get no results. One of these =
> systems has subsequently been updated from Etch to Lenny (the latest =
> testing distribution) and still doesn't return results. Both had =
> previously worked fine on the Woody and Sarge versions and all four of =
> these Debian distributions used the htdig version 3.2.0b6, so the only =
> conclusion I can come to is that there may have been some change in =
> some library or compiler. I have not tried compiling my own version =
> of htsearch, I've only used the binary distributed by debian, so I was =
> interested to hear that you had done so on ubuntu, and with an older =
> version of htdig, with no improvement. I would be interested to know =
> if anyone is using htdig successfully on either the etch or lenny =
> debian distributions.
> =
> Don MacDougall
> [email protected]
> =
> On Mon, Jan 28, 2008 at 09:03:11PM -0700, Jim wrote:
>> Hi - I don't have a dapper system to test the package with, so I can't
>> help in that regard. I can't think of anything else to suggest at this
>> point, other than continuing with your attempt to build from source.
>>
>> Unless you have some reason to do otherwise, I would strongly recommend
>> that you try 3.2.0b6 rather than 3.1.6. The 3.1.6 code is ancient and
>> hasn't seen an update in nearly six years. While the 3.2.0b6 version is
>> itself languishing, it is a little more up to date and people still seem
>> to be having reasonably good luck with it. I wouldn't worry too much
>> about the 'b6'; this version of the code was very near official release
>> when it stopped being maintained.
>>
>> Jim
>>
>> On Mon, 28 Jan 2008, Steven Carr wrote:
>>
>>> Hi Jim,
>>> Thanks for the email. Im running rundig as root and htsearch also a=
s root
>>> from command line. I chmod -R 777 /root/htdig_quatsch_test/ to be sure =
with
>>> the file permissions.
>>> I have only one /etc/htdig/htdig.conf, and just to be sure I tried chmo=
d -R
>>> 777 /etc/htdig
>>>
>>> # /usr/lib/cgi-bin/htsearch -v -d -c /etc/htdig/htdig.conf
>>> Enter value for words: public
>>> tempWords: 'public:0 '
>>> Boolean: 'public:0 '
>>> initial: ''
>>> Fuzzy on: public
>>> exact public
>>> endings publicness publics publicly
>>> searchWords: '(:0 public:0 |:0 publicness:0 |:0 publics:0 |:0 publicly:=
0 ):0 '
>>> LogicalWords: (public or publicness or publics or publicly)
>>> Pattern: public|publicness|publics|publicly
>>> Content-type: text/html
>>>
>>>
>>> I deleted the dbs, rm /root/htdig_quatsch_test/db/quatsch/db*
>>> then did a rundig, It created the databases..
>>>
>>> root@web-fe-08:/root/htdig_quatsch_test/db/quatsch# ls -lpa
>>> total 368
>>> drwxrwxrwx 2 root root 4096 2008-01-28 21:15 ./
>>> drwxrwxrwx 3 root root 4096 2008-01-26 00:44 ../
>>> -rw-r--r-- 1 root root 77824 2008-01-28 21:15 db.docdb
>>> -rw-r--r-- 1 root root 5120 2008-01-28 21:15 db.docs.index
>>> -rw-r--r-- 1 root root 110850 2008-01-28 21:15 db.wordlist
>>> -rw-r--r-- 1 root root 153600 2008-01-28 21:15 db.words.db
>>> root@web-fe-08:/root/htdig_quatsch_test/db/quatsch#
>>>
>>> I chmod 777ed the newly created databases but still got no results via
>>> htsearch. :(
>>>
>>> I started to think maybe something was broken in the ubuntu htdig packa=
ge so
>>> tried compiling the htdig source..
>>> after a ./configure I got..
>>>
>>> configure: error: To compile ht://Dig, you will need a C++ library. Try
>>> installing libstdc++.
>>> root@web-fe-08:/root/htdig-3.1.6# uname -a
>>> Linux web-fe-08 2.6.15-26-amd64-server #1 SMP Thu Aug 3 03:32:26 UTC 20=
06
>>> x86_64 GNU/Linux
>>> root@web-fe-08:/root/htdig-3.1.6# dpkg -l | grep libstd
>>> ii libstdc++5 3.3.6-10 The=
GNU
>>> Standard C++ Library v3
>>> ii libstdc++6 4.0.3-1ubuntu5 The=
GNU
>>> Standard C++ Library v3
>>> ii libstdc++6-4.0-dev 4.0.3-1ubuntu5 The=
GNU
>>> Standard C++ Library v3 (development
>>>
>>> hmmm, I googled and found I should do this..
>>> CXXFLAGS=3D-Wno-deprecated CPPFLAGS=3D-Wno-deprecated ./configure
>>> This time configure completed :) but during make I got this...
>>>
>>> make[1]: Entering directory `/root/htdig-3.1.6/htdig'
>>> c++ -c -DDEFAULT_CONFIG_FILE=3D\"/opt/www/htdig/conf/htdig.conf\" -I..=
/htlib
>>> -I../htcommon -I../db/dist -I../include -Wno-deprecated SGMLEntities.cc
>>> SGMLEntities.cc: In static member function =E2static unsigned char
>>> SGMLEntities::translate(char*)=E2:
>>> SGMLEntities.cc:157: error: cast from =E2Object*=E2 to =E2int=E2 loses =
precision
>>> make[1]: *** [SGMLEntities.o] Error 1
>>> make[1]: Leaving directory `/root/htdig-3.1.6/htdig'
>>> make: *** [all] Error 1
>>>
>>> Perhaps I leave the compiling :) Or try again of a different linux vari=
ant.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
ht://Dig general mailing list: <[email protected]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general