Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan Sørensen 102 posts 327 karma points
    Mar 19, 2014 @ 18:36
    Dan Sørensen
    0

    Search function with wildcard.

    what wildcard search support is available from Lucene?

    on this site http://wiki.apache.org/lucene-java/LuceneFAQ#Whatwildcardsearchsupportisavailablefrom_Lucene.3F

    I found some different ways to use * and ?. but isn't it possible to make a search that will find all words with the searchterm insite

    it would be like

    *searchterm* 
    

    so when I would search for lets say

    "archt" 
    

    then it would find

    searchterm 
    

    because thats in the word ?

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Mar 22, 2014 @ 20:48
    Jeroen Breuer
    0

    Hello,

    I don't have a lot of experience with this, but the ezSearch source code might help. It does a lot of Lucene magic.

    Jeroen

  • Dan Sørensen 102 posts 327 karma points
    Mar 24, 2014 @ 11:03
    Dan Sørensen
    0

    Im using the ezSearch but this just search like

     searchterm* 
    

    And thats not what I want unfortunately, so im trying to make the search better.

  • Rob Watkins 370 posts 702 karma points
    Mar 24, 2014 @ 11:06
    Rob Watkins
    0

    You might find this SO question on leading wildcards useful; I have not tried it so can't say if it does what you want, but as your problem features a leading wildcard it might be worth looking at.

    http://stackoverflow.com/questions/11766351/understanding-lucene-leading-wildcard-performance

  • Rob Watkins 370 posts 702 karma points
    Mar 24, 2014 @ 11:49
    Rob Watkins
    0

    Just seen your other recent post so I assume you've already looked into this, sorry!

  • Dan Sørensen 102 posts 327 karma points
    Mar 24, 2014 @ 15:56
    Dan Sørensen
    0

    That's okay, I guess it's better to just post something that might help, and perhaps help others to make a better answer. and yes I have already seen this post, I feel a little like I have searched the hole internet by a solution for this.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies