Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-help-dev] Searchin'

Bobster:

You're probably running into the same problem I reported in bug 36378
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=36378): "HTML parser should
treat <td> as a word break element".

I bet your HTML files use tables to display messages, something like:

<table><td>DFS2178</td><td>The message you have requested does not
exist</td></table>.

Lucene (the Eclipse search engine) basically strips out the HTML tags when
it indexes content. So what it sees is:

DFS2178The message you have requested does not exist

The workaround is to preprocess your HTML to insert a space or linebreak
character around tags that denote whitespace. Then you can use exact search
to retrieve the message.

(Lucene ignores numbers outside of exact text searches, which seems a
little bit strange to me... but that's just the way it works. It certainly
does make searching for error messages harder, though; as most users are
unlikely to figure out that exact text search will work.)

Dan

--



                                                                                                                                              
                      Robert Turek/Santa                                                                                                      
                      Teresa/IBM@IBMUS                To:       platform-help-dev@xxxxxxxxxxx                                                 
                      Sent by:                        cc:                                                                                     
                      platform-help-dev-admin@        Subject:  [platform-help-dev] Searchin'                                                 
                      eclipse.org                                                                                                             
                                                                                                                                              
                                                                                                                                              
                      06/05/2003 02:42 PM                                                                                                     
                      Please respond to                                                                                                       
                      platform-help-dev                                                                                                       
                                                                                                                                              
                                                                                                                                              








Question on search ----

So, we have a fairly large set of messages in an information set in
eclipse.  When I search on a particular message, for example,
on  DSF2178 , I get a bunch'o hits.  It seems to find a lot of the
things that start with DSF as well as the one reference to the
exact message.  But, there may be 40 or 50 hits, so finding
the one with just that message is a pain.

However, when I search for  "DSF2178" , to try to find just that
message as a phrase, it returns nothing.

How should you search on a particular message by number?

____________________________________  The Bobster

_______________________________________________
platform-help-dev mailing list
platform-help-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-help-dev





Back to the top