You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Dirk Hennig <dh...@rrzn.uni-hannover.de> on 2005/11/29 12:06:40 UTC
Search Problem
Hallo,
I have a simple index which includes only text (in a field "text") from
2 different type of files: html and pdf.
I'm using a field "filetype" to store from which type the text came.
This field holds a value "html" or "pdf".
Now, if I browse the index with Luke, I can see all documents, text and
filetype fields, just as it should be. I can browse through the
documents using "First Doc", "Next Doc". But if I search for a word in a
document, only hits from html are shown. If I specifiy pdf, there are no
results. Even the simple query "+filetype:pdf" returns no results. But
"+filetype:html" works perfect.
How can this be? Has anyone an idea?
Thanx,
Dirk Hennig
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Search Problem
Posted by Dirk Hennig <dh...@rrzn.uni-hannover.de>.
Hi Pierrick,
> It is very likely that the analyzer bound to your query parser filters
> "pdf" out, maybe because it has only 3 letters,
Luke shows me "filetype:pdf" as parsed and rewritten query.
I think than this can't be the problem or am I wrong on this?
Greetings,
Dirk
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Search Problem
Posted by Pierrick Brihaye <pi...@culture.gouv.fr>.
Hi,
Dirk Hennig wrote:
> Even the simple query "+filetype:pdf" returns no results. But
> "+filetype:html" works perfect.
> How can this be? Has anyone an idea?
It is very likely that the analyzer bound to your query parser filters
"pdf" out, maybe because it has only 3 letters,
Cheers,
--
Pierrick Brihaye, informaticien
Service régional de l'Inventaire / DRAC Bretagne
mailto:pierrick.brihaye@culture.gouv.fr / tél : +33 (0)2 99 29 67 78
http://usenet-fr.news.eu.org/fr-chartes/rfc1855.html#31. L'avez-vous lu ?
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Search Problem
Posted by wu fox <fo...@gmail.com>.
try to use mime format just as "application/pdf" and to see if it is feasible
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Search Problem
Posted by Dirk Hennig <dh...@rrzn.uni-hannover.de>.
>
>
>Lucene is case sensitive. Make sure the case in your query matches the case
>in the index. You could also try selecting the keyword analyser in Luke.
>
I've done both, but the results are as written.
Dirk
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Search Problem
Posted by Pa...@saaconsultants.com.
Lucene is case sensitive. Make sure the case in your query matches the case
in the index. You could also try selecting the keyword analyser in Luke.
Paul I.
Dirk Hennig
<dhennig@rrzn.uni
-hannover.de> To
java-user@lucene.apache.org
29/11/2005 11:06 cc
Subject
Please respond to Search Problem
java-user@lucene.
apache.org
Hallo,
I have a simple index which includes only text (in a field "text") from
2 different type of files: html and pdf.
I'm using a field "filetype" to store from which type the text came.
This field holds a value "html" or "pdf".
Now, if I browse the index with Luke, I can see all documents, text and
filetype fields, just as it should be. I can browse through the
documents using "First Doc", "Next Doc". But if I search for a word in a
document, only hits from html are shown. If I specifiy pdf, there are no
results. Even the simple query "+filetype:pdf" returns no results. But
"+filetype:html" works perfect.
How can this be? Has anyone an idea?
Thanx,
Dirk Hennig
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org