Copied to clipboard

Flag this post as spam?

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


  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Apr 11, 2014 @ 13:16
    Ismail Mayat
    0

    Search issue on dev site

    Really weird issue here. I have ezsearch working on localhost get results back. On dev site I dont get any results.

    I am writing out the generated query to a hidden field. On both local and dev box same query is generated. When you run the query in the backoffice using examine management searcher you get results back. The indexes on both local and dev contain same number of documents. No errors in log file, its got me stumped.

    Ismail

  • Peter Gregory 408 posts 1614 karma points MVP 3x admin c-trib
    Apr 11, 2014 @ 14:13
    Peter Gregory
    0

    I have seen the same thing once. I put it down to index inconsistencies. I deleted the indexes and re-indexed and it came right. Not sure if it had something do with machine names or something like that but I didn't investigate further as it repaired itself.

    100% you configurations are the same?

    Peter

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Apr 11, 2014 @ 15:33
    Ismail Mayat
    0

    Pete,

    Yup everything is exactly the same site is shared db and it autobuilds out using teamcity. On dev i republished everything and rebuilt indexes. The weird thing is running the query in backend gives results just not on front end. I am going to completely delete the index by hand then rebuild see if that fixes it.

    Ismail

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Apr 11, 2014 @ 16:05
    Ismail Mayat
    0

    Pete,

    My colleague has downloaded source and built then done search localhost and it all works!!! GRRRRRR

    Regards

    Ismail

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Apr 11, 2014 @ 17:25
    Ismail Mayat
    100

    Ok mystery solved. In my ezsearch i was searching on field contents. This field is injected into the index by the bootstrapper class found in app_code directory. On my dev server when teamcity builds it will exclude .cs files hence i never had contents field on dev. So I moved the code into my dll and now it all works woot!!!!

    Regards

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft