How get normal text search with solr

Hi together,

i have a little problem with the solr search engine.
In a page i wrote the text “fresh/frozen” but if i use the search with solr acitivatet i didnt get a result.
If i change the engine to database i get a result but no preview.

I checked the admin page for the configuration and checked the sources.
I have:

  • document name
  • document
  • name of files
  • files
  • blogs
  • user
  • wikis

But what do i have to configure to get a normal text search?

1 Like

Hi, see https://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application#HSearchSyntax for the syntax to search.

You didn’t say which text you’ve used in your search query but I suspect that you forgot “*”.

Note that DB search and SOLR search don’t work the same for matching search queries (they also don’t use the same syntax).

Thx yes i know that they are different.
What i want to say is, that with the db search i get a hit to the page i search for.
With solr i didnt get a hit.

I use the normal search mask and type “fresh/frozen” i dont want to use more.
Like a simple user will use it and he should get the hit with the page.

Or do u mean something else?

Just tested it on playground.xwiki.org and it works fine:

https://playground.xwiki.org/xwiki/bin/view/Main/Search?sort=score&sortOrder=desc&highlight=true&facet=true&r=1&f_type=DOCUMENT&f_locale=en&f_locale=&text=fresh%2Ffrozen

Note: This will be reset tonight since playground is reset every say.

at my system not
if i write it in a blog it works.
if i make a file with the name too.
but normal text wont work

in the search config there are this topics:

  • document name
    
  • document
    
  • name of files
    
  • files
    
  • blogs
    
  • user
    
  • wikis
    

is document for the normale page?

Maybe it means your page wasn’t indexed properly? Try making a change to it and saving it. Then try to search for it after some time. You could also check the xwiki logs too to see if you see any error there about the indexing.

i made 2 new sites only with this text ^^
DB search found it but solr dont

Maybe it’s related to the language of your wiki?

it is only one language activated and its german.
If i write “frozen” in a blog type site, solr can find it

i tried it once more and i find out that the problem i have only regards tables.
the solr search can find normal text, but if i put in a table the solr search cant find it.

someone else have this problem?

i search for a text in the table “frozen”
here the debug information:

Query Parser
ExtendedDismaxQParser
Parsed Query
+((filename:fresh)^0.4 | (attauthor_display:fresh)^0.016 | ((doccontent_de_DE:fresh | doccontent__:fresh)~0.1)^2.0 | (author_display:fresh)^0.08 | (name:fresh)^10.0 | (spaces:fresh)^0.016 | (creator_display:fresh)^0.08 | ((comment__:fresh | comment_de_DE:fresh)~0.1)^0.016 | ((title_de_DE:fresh | title__:fresh)~0.1)^10.0 | ((objcontent_de_DE:fresh | objcontent__:fresh)~0.1)^0.4 | ((doccontentraw_de_DE:fresh | doccontentraw__:fresh)~0.1)^0.4 | ((attcontent__:fresh | attcontent_de_DE:fresh)~0.1)^0.4)~0.1 ()

    Filter Queries
            {!tag=hidden}hidden:(false)
            {!tag=type}type:("DOCUMENT")
            {!tag=locale}locale:("de_DE" OR "")

    Processing Time
            time: 5.0
            prepare:
                time: 0.0
                query: {time=0.0}
                facet: {time=0.0}
                facet_module: {time=0.0}
                mlt: {time=0.0}
                highlight: {time=0.0}
                stats: {time=0.0}
                expand: {time=0.0}
                terms: {time=0.0}
                debug: {time=0.0}
            process:
                time: 4.0
                query: {time=0.0}
                facet: {time=1.0}
                facet_module: {time=0.0}
                mlt: {time=0.0}
                highlight: {time=1.0}
                stats: {time=0.0}
                expand: {time=0.0}
                terms: {time=0.0}
                debug: {time=0.0}